glsl: Bump standalone compiler versions to 3.30.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 23 Aug 2013 23:52:07 +0000 (16:52 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 26 Aug 2013 03:32:39 +0000 (20:32 -0700)
These are necessary in order to compile the built-in functions.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/builtins/tools/generate_builtins.py
src/glsl/main.cpp

index 54c5a49fb238762fb7a20f52d6fbc19d62b6568c..70e9d75b2ea5b1a2ec4057c1fc239bbe6a2904e9 100755 (executable)
@@ -174,7 +174,7 @@ read_builtins(GLenum target, const char *protos, const char **functions, unsigne
 {
    struct gl_context fakeCtx;
    fakeCtx.API = API_OPENGL_COMPAT;
-   fakeCtx.Const.GLSLVersion = 150;
+   fakeCtx.Const.GLSLVersion = 330;
    fakeCtx.Extensions.ARB_ES2_compatibility = true;
    fakeCtx.Extensions.ARB_ES3_compatibility = true;
    fakeCtx.Const.ForceGLSLExtensionsWarn = false;
@@ -182,7 +182,7 @@ read_builtins(GLenum target, const char *protos, const char **functions, unsigne
    struct _mesa_glsl_parse_state *st =
       new(sh) _mesa_glsl_parse_state(&fakeCtx, target, sh);
 
-   st->language_version = 150;
+   st->language_version = 330;
    st->symbols->separate_function_namespace = false;
    st->ARB_texture_rectangle_enable = true;
    st->EXT_texture_array_enable = true;
index 60bc62827092719fc678efe5def1b8675a9dc1a9..e13d5c452964c06c3fd5def674a5544b202956b6 100644 (file)
@@ -46,7 +46,7 @@ initialize_context(struct gl_context *ctx, gl_api api)
    /* The standalone compiler needs to claim support for almost
     * everything in order to compile the built-in functions.
     */
-   ctx->Const.GLSLVersion = 150;
+   ctx->Const.GLSLVersion = 330;
    ctx->Extensions.ARB_ES3_compatibility = true;
 
    ctx->Const.MaxClipPlanes = 8;