Reviewed-by: Marek Olšák <marek.ol...@amd.com> Marek
On Tue, Apr 22, 2014 at 4:27 AM, Ilia Mirkin <imir...@alum.mit.edu> wrote: > Signed-off-by: Ilia Mirkin <imir...@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@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev