summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2012-03-12 16:08:44 -0700
committerEric Anholt <[email protected]>2012-03-15 16:24:50 -0700
commite06ab8c3632b748ffb59e1a82e7c966010a675e2 (patch)
treeb6c21894b42c86c17e4bd3fd4d8c2eb029b2ef08 /src
parent3645b77b7162913b504a49fc42d785fde27df3f3 (diff)
glsl: Set up generated builtin functions handling for GLSL 1.40.
Otherwise, when we go to use ir_reader on the generated code, we won't have the types present. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/glsl/builtins/tools/generate_builtins.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/glsl/builtins/tools/generate_builtins.py b/src/glsl/builtins/tools/generate_builtins.py
index 9ab6edd226f..9c1aeb56242 100755
--- a/src/glsl/builtins/tools/generate_builtins.py
+++ b/src/glsl/builtins/tools/generate_builtins.py
@@ -162,14 +162,14 @@ read_builtins(GLenum target, const char *protos, const char **functions, unsigne
{
struct gl_context fakeCtx;
fakeCtx.API = API_OPENGL;
- fakeCtx.Const.GLSLVersion = 130;
+ fakeCtx.Const.GLSLVersion = 140;
fakeCtx.Extensions.ARB_ES2_compatibility = true;
gl_shader *sh = _mesa_new_shader(NULL, 0, target);
struct _mesa_glsl_parse_state *st =
new(sh) _mesa_glsl_parse_state(&fakeCtx, target, sh);
- st->language_version = 130;
- st->symbols->language_version = 130;
+ st->language_version = 140;
+ st->symbols->language_version = 140;
st->ARB_texture_rectangle_enable = true;
st->EXT_texture_array_enable = true;
st->OES_EGL_image_external_enable = true;