[Mesa-dev] [PATCH 6/6] st/mesa: enable ARB(AMD)_convervative_depth if GLSL 1.3 is supported

Marek Olšák maraeo at gmail.com
Fri Nov 18 11:27:52 PST 2011


The spec says GL3 is required, but technically the extension only needs
the 'out' modifier from GLSL 1.3.
---
 src/mesa/state_tracker/st_extensions.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index 96a1059..ad09c1d 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -248,6 +248,9 @@ void st_init_extensions(struct st_context *st)
 
    if (screen->get_param(screen, PIPE_CAP_SM4)) {
       ctx->Const.GLSLVersion = 130;
+
+      /* Extensions that only require GLSL 1.3. */
+      ctx->Extensions.AMD_conservative_depth = GL_TRUE;
    }
 
    _mesa_override_glsl_version(st->ctx);
-- 
1.7.5.4



More information about the mesa-dev mailing list