Module: Mesa
Branch: master
Commit: 32f7676e9c09d9c13da3fa2518807ab94aad5fb2
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=32f7676e9c09d9c13da3fa2518807ab94aad5fb2

Author: Kenneth Graunke <[email protected]>
Date:   Mon Apr 16 13:29:42 2012 -0700

glsl/builtins: Rework profiles to use the new '.glsl' common suffix.

Deletes a lot of pointless duplication, as well as some run-time effort.

Conveniently, GLSL 1.40 no longer needs a .vert variant, since it
doesn't define any built-ins specific to the vertex shader stage.

ARB_texture_rectangle and OES_EGL_image_external also only need a single
profile, since the .vert and .frag variants were identical.

I didn't bother with EXT_texture_array and OES_texture_3D because
they're so tiny that the savings would be miniscule.

Cuts the generated builtin_function.cpp from 1.7MB to 1.0MB (41%).

Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Acked-by: Ian Romanick <[email protected]>

---

 src/glsl/builtins/profiles/100.frag                |  294 ------
 src/glsl/builtins/profiles/100.glsl                |  296 ++++++
 src/glsl/builtins/profiles/100.vert                |  294 ------
 src/glsl/builtins/profiles/110.frag                |  326 +-------
 src/glsl/builtins/profiles/110.glsl                |  332 +++++++
 src/glsl/builtins/profiles/110.vert                |  328 +-------
 src/glsl/builtins/profiles/120.frag                |  357 -------
 src/glsl/builtins/profiles/120.glsl                |  364 ++++++++
 src/glsl/builtins/profiles/120.vert                |  362 --------
 src/glsl/builtins/profiles/130.frag                |  895 ------------------
 src/glsl/builtins/profiles/{140.vert => 130.glsl}  |   95 +--
 src/glsl/builtins/profiles/130.vert                |  908 ------------------
 src/glsl/builtins/profiles/140.frag                |  977 --------------------
 src/glsl/builtins/profiles/{140.vert => 140.glsl}  |   12 +-
 .../builtins/profiles/ARB_shader_texture_lod.frag  |   47 -
 ...exture_lod.vert => ARB_shader_texture_lod.glsl} |    0 
 ...e_rectangle.frag => ARB_texture_rectangle.glsl} |    0 
 .../builtins/profiles/ARB_texture_rectangle.vert   |    7 -
 ...e_external.frag => OES_EGL_image_external.glsl} |    0 
 .../builtins/profiles/OES_EGL_image_external.vert  |    6 -
 20 files changed, 1003 insertions(+), 4897 deletions(-)

Diff:   
http://cgit.freedesktop.org/mesa/mesa/diff/?id=32f7676e9c09d9c13da3fa2518807ab94aad5fb2
_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to