mesa/st: enable EXT_shader_integer_mix when NativeIntegers is on
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 22 Apr 2014 02:22:27 +0000 (22:22 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 22 Apr 2014 15:27:34 +0000 (11:27 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_extensions.c

index 0599893429d29caf53e2242543b1aed1d8c96595..70726886e57e3afc8c92901bac3dc83fe9595685 100644 (file)
@@ -635,6 +635,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,
@@ -642,6 +644,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;
       }
    }