[Mesa-dev] [PATCH] st/mesa: expose conservative_depth if GLSL 1.3 is supported
Marek Olšák
maraeo at gmail.com
Tue Dec 13 09:14:39 PST 2011
It's not yet, but it can be enabled by the override environment variable.
---
src/mesa/state_tracker/st_extensions.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index 457d5d6..227906b 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -256,6 +256,12 @@ void st_init_extensions(struct st_context *st)
ctx->Const.GLSLVersion = 120;
_mesa_override_glsl_version(st->ctx);
+ /* Extensions that only depend on the GLSL version:
+ */
+ if (ctx->Const.GLSLVersion >= 130) {
+ ctx->Extensions.ARB_conservative_depth = GL_TRUE;
+ }
+
/*
* Extensions that are supported by all Gallium drivers:
*/
--
1.7.5.4
More information about the mesa-dev
mailing list