32f7676e9c09d9c13da3fa2518807ab94aad5fb2 |
|
16-Apr-2012 |
Kenneth Graunke <kenneth@whitecape.org> |
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>
/external/mesa3d/src/glsl/builtins/profiles/OES_EGL_image_external.glsl
|