[Mesa-dev] [PATCH] mesa/st: enable EXT_shader_integer_mix when NativeIntegers is on

Ilia Mirkin imirkin at alum.mit.edu
Mon Apr 21 19:27:32 PDT 2014


Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---

This just maps to the UCMP instruction which should be supported by everyone
who supports native integers in shaders. Tested on nv50, llvmpipe, and
softpipe.

 src/mesa/state_tracker/st_extensions.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index 8b1101a..a245fdf 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -636,6 +636,8 @@ void st_init_extensions(struct st_context *st)
       if (!st->options.disable_shader_bit_encoding) {
          ctx->Extensions.ARB_shader_bit_encoding = GL_TRUE;
       }
+
+      ctx->Extensions.EXT_shader_integer_mix = GL_TRUE;
    } else {
       /* Optional integer support for GLSL 1.2. */
       if (screen->get_shader_param(screen, PIPE_SHADER_VERTEX,
@@ -643,6 +645,8 @@ void st_init_extensions(struct st_context *st)
           screen->get_shader_param(screen, PIPE_SHADER_FRAGMENT,
                                    PIPE_SHADER_CAP_INTEGERS)) {
          ctx->Const.NativeIntegers = GL_TRUE;
+
+         ctx->Extensions.EXT_shader_integer_mix = GL_TRUE;
       }
    }
 
-- 
1.8.3.2



More information about the mesa-dev mailing list