diff options
author | Matt Turner <[email protected]> | 2017-01-31 15:41:52 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2017-02-09 15:14:43 +0000 |
commit | d7a0486a9e4e71d98c694872815909b8f8c0d3ac (patch) | |
tree | 29c381b39aae8999c3312dbdf6e08a0d8e88cb94 /src/compiler/glsl/glsl_parser_extras.h | |
parent | 89b4176eb15625d915716fae88e74b62fc994b4d (diff) |
glsl: Allow compatibility shaders with MESA_GL_VERSION_OVERRIDE=...
Previously if you used MESA_GL_VERSION_OVERRIDE=3.3COMPAT, Mesa exposed
an OpenGL 3.3 compatibility profile context (with various unimplemented
features and bugs), but still refused to compile shaders with
#version 330 compatibility
This patch simply adds a small bit of plumbing to let that through.
Of course the same caveats apply: compatibility profile is still not
supported (and will not be supported), so there are no guarantees that
anything will work.
Tested-by: Dylan Baker <[email protected]>
Reviewed-by: Anuj Phogat <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/compiler/glsl/glsl_parser_extras.h')
-rw-r--r-- | src/compiler/glsl/glsl_parser_extras.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/glsl/glsl_parser_extras.h b/src/compiler/glsl/glsl_parser_extras.h index 424cab5023c..66a954f880b 100644 --- a/src/compiler/glsl/glsl_parser_extras.h +++ b/src/compiler/glsl/glsl_parser_extras.h @@ -348,6 +348,7 @@ struct _mesa_glsl_parse_state { } supported_versions[16]; bool es_shader; + bool compat_shader; unsigned language_version; unsigned forced_language_version; bool zero_init; |