diff options
author | marha <marha@users.sourceforge.net> | 2011-05-03 15:37:14 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-05-03 15:37:14 +0000 |
commit | e4bd55e182560fa87af77ee3ec49fc1a907ead85 (patch) | |
tree | f77ade9dac153a4f45e08ccaf260de8d8ddbbb17 /mesalib/src/glsl/glsl_parser_extras.cpp | |
parent | e8af1ef3142aaaf2d17f2d3710e23eee1baf8a61 (diff) | |
parent | cc93496bdbb3e7aea51033ece75fa85cfb5845d4 (diff) | |
download | vcxsrv-e4bd55e182560fa87af77ee3ec49fc1a907ead85.tar.gz vcxsrv-e4bd55e182560fa87af77ee3ec49fc1a907ead85.tar.bz2 vcxsrv-e4bd55e182560fa87af77ee3ec49fc1a907ead85.zip |
svn merge ^/branches/released .
Diffstat (limited to 'mesalib/src/glsl/glsl_parser_extras.cpp')
-rw-r--r-- | mesalib/src/glsl/glsl_parser_extras.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mesalib/src/glsl/glsl_parser_extras.cpp b/mesalib/src/glsl/glsl_parser_extras.cpp index 823e75167..07e0a6d69 100644 --- a/mesalib/src/glsl/glsl_parser_extras.cpp +++ b/mesalib/src/glsl/glsl_parser_extras.cpp @@ -255,6 +255,16 @@ _mesa_glsl_process_extension(const char *name, YYLTYPE *name_locp, state->AMD_conservative_depth_enable = (ext_mode != extension_disable);
state->AMD_conservative_depth_warn = (ext_mode == extension_warn);
unsupported = !state->extensions->AMD_conservative_depth;
+ } else if (strcmp(name, "GL_AMD_shader_stencil_export") == 0) {
+ state->AMD_shader_stencil_export_enable = (ext_mode != extension_disable);
+ state->AMD_shader_stencil_export_warn = (ext_mode == extension_warn);
+
+ /* This extension is only supported in fragment shaders.
+ * Both the ARB and AMD variants share the same ARB flag
+ * in gl_extensions.
+ */
+ unsupported = (state->target != fragment_shader)
+ || !state->extensions->ARB_shader_stencil_export;
} else if (strcmp(name, "GL_OES_texture_3D") == 0 && state->es_shader) {
state->OES_texture_3D_enable = (ext_mode != extension_disable);
state->OES_texture_3D_warn = (ext_mode == extension_warn);
|