[Mesa-dev] [PATCH 09/10] glsl: Enable AMD_conservative_depth in parser
Chad Versace
chad.versace at intel.com
Sat Oct 23 11:22:29 PDT 2010
---
src/glsl/glsl_parser_extras.cpp | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp
index b2c378d..54fcc88 100644
--- a/src/glsl/glsl_parser_extras.cpp
+++ b/src/glsl/glsl_parser_extras.cpp
@@ -210,6 +210,14 @@ _mesa_glsl_process_extension(const char *name, YYLTYPE *name_locp,
state->ARB_shader_stencil_export_warn = (ext_mode == extension_warn);
unsupported = !state->extensions->ARB_shader_stencil_export;
}
+ } else if (strcmp(name, "GL_AMD_conservative_depth") == 0) {
+ if (state->target != fragment_shader) {
+ unsupported = true;
+ } else {
+ 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 {
unsupported = true;
}
--
1.7.1
More information about the mesa-dev
mailing list