aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/glsl/glsl_parser_extras.cpp
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-01-27 11:07:33 +0000
committermarha <marha@users.sourceforge.net>2011-01-27 11:07:33 +0000
commitdc9d750132f95783d2db6fb8e08271fc0878576d (patch)
treea50266155fef4466569ee0c478da0dae2fdf092b /mesalib/src/glsl/glsl_parser_extras.cpp
parenta58ed86fb6139585b9a5d5664c52c7e0d5cfa719 (diff)
downloadvcxsrv-dc9d750132f95783d2db6fb8e08271fc0878576d.tar.gz
vcxsrv-dc9d750132f95783d2db6fb8e08271fc0878576d.tar.bz2
vcxsrv-dc9d750132f95783d2db6fb8e08271fc0878576d.zip
pixman and mesalib git update 27 jan 2011
Diffstat (limited to 'mesalib/src/glsl/glsl_parser_extras.cpp')
-rw-r--r--mesalib/src/glsl/glsl_parser_extras.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/mesalib/src/glsl/glsl_parser_extras.cpp b/mesalib/src/glsl/glsl_parser_extras.cpp
index 77885d4e1..c9a8a2cb2 100644
--- a/mesalib/src/glsl/glsl_parser_extras.cpp
+++ b/mesalib/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;
}