glsl/builtins: Rework profiles to use the new '.glsl' common suffix.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 16 Apr 2012 20:29:42 +0000 (13:29 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 17 Apr 2012 23:05:18 +0000 (16:05 -0700)
commit32f7676e9c09d9c13da3fa2518807ab94aad5fb2
treea7f83004f5f8995bd9390c47457398dea658f39b
parentfbea94ae59817c1d9db9b2f1e257daeadf7c15a9
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 <kenneth@whitecape.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Acked-by: Ian Romanick <ian.d.romanick@intel.com>
24 files changed:
src/glsl/builtins/profiles/100.frag
src/glsl/builtins/profiles/100.glsl [new file with mode: 0644]
src/glsl/builtins/profiles/100.vert
src/glsl/builtins/profiles/110.frag
src/glsl/builtins/profiles/110.glsl [new file with mode: 0644]
src/glsl/builtins/profiles/110.vert
src/glsl/builtins/profiles/120.frag
src/glsl/builtins/profiles/120.glsl [new file with mode: 0644]
src/glsl/builtins/profiles/120.vert
src/glsl/builtins/profiles/130.frag
src/glsl/builtins/profiles/130.glsl [new file with mode: 0644]
src/glsl/builtins/profiles/130.vert
src/glsl/builtins/profiles/140.frag
src/glsl/builtins/profiles/140.glsl [new file with mode: 0644]
src/glsl/builtins/profiles/140.vert [deleted file]
src/glsl/builtins/profiles/ARB_shader_texture_lod.frag
src/glsl/builtins/profiles/ARB_shader_texture_lod.glsl [new file with mode: 0644]
src/glsl/builtins/profiles/ARB_shader_texture_lod.vert [deleted file]
src/glsl/builtins/profiles/ARB_texture_rectangle.frag [deleted file]
src/glsl/builtins/profiles/ARB_texture_rectangle.glsl [new file with mode: 0644]
src/glsl/builtins/profiles/ARB_texture_rectangle.vert [deleted file]
src/glsl/builtins/profiles/OES_EGL_image_external.frag [deleted file]
src/glsl/builtins/profiles/OES_EGL_image_external.glsl [new file with mode: 0644]
src/glsl/builtins/profiles/OES_EGL_image_external.vert [deleted file]