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

Marek Olšák maraeo at gmail.com
Tue Apr 22 03:13:49 PDT 2014


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Tue, Apr 22, 2014 at 4:27 AM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> 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
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list