This generally looks good to me. Note that this is not required for st/mesa, because the GLSL cap covers it all (the GLSL cap also covers integer textures, texture arrays, shader_texture_lod, clip distances, shadow cube samplers etc.), though I guess other clients would like to make use of PIPE_SHADER_CAP_INTEGERS as well.
Marek On Mon, Jan 30, 2012 at 7:35 PM, Dave Airlie <airl...@gmail.com> wrote: > From: Dave Airlie <airl...@redhat.com> > > Signed-off-by: Dave Airlie <airl...@redhat.com> > --- > src/gallium/drivers/r600/r600_pipe.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/src/gallium/drivers/r600/r600_pipe.c > b/src/gallium/drivers/r600/r600_pipe.c > index 1123557..fcc2d8d 100644 > --- a/src/gallium/drivers/r600/r600_pipe.c > +++ b/src/gallium/drivers/r600/r600_pipe.c > @@ -510,7 +510,7 @@ static int r600_get_shader_param(struct pipe_screen* > pscreen, unsigned shader, e > case PIPE_SHADER_CAP_SUBROUTINES: > return 0; > case PIPE_SHADER_CAP_INTEGERS: > - return 0; > + return debug_get_bool_option("R600_GLSL130", FALSE) ? 1 : 0; > case PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS: > return 16; > case PIPE_SHADER_CAP_OUTPUT_READ: > -- > 1.7.7.6 > > _______________________________________________ > 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