From: Chad Versace Date: Thu, 27 Jan 2011 09:40:39 +0000 (-0800) Subject: glsl: Enable AMD_conservative_depth in parser X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8ba260e09910d6906fba17a78eee6d1b0cf8069d;p=mesa.git glsl: Enable AMD_conservative_depth in parser All the necessary compiler infrastructure for AMD_conservative_depth is in place, so it's safe to enable it in the parser. --- diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index 77885d4e1e3..c9a8a2cb277 100644 --- a/src/glsl/glsl_parser_extras.cpp +++ b/src/glsl/glsl_parser_extras.cpp @@ -219,6 +219,13 @@ _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) { + /* The AMD_conservative spec does not forbid requiring the extension in + * the vertex shader. + */ + 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; }