mesa/st: set min/max texture gather offset to driver-reported value
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 9 Apr 2014 18:59:25 +0000 (14:59 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 11 Apr 2014 00:42:48 +0000 (20:42 -0400)
It was always getting set to -8/7 unconditionally.  Use the
driver-reported value instead.

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 3e1e45d1badc42cbadc166f82f3361fcced041e5..0599893429d29caf53e2242543b1aed1d8c96595 100644 (file)
@@ -275,6 +275,9 @@ void st_init_limits(struct st_context *st)
    c->MaxProgramTexelOffset = screen->get_param(screen, PIPE_CAP_MAX_TEXEL_OFFSET);
 
    c->MaxProgramTextureGatherComponents = screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_GATHER_COMPONENTS);
+   c->MinProgramTextureGatherOffset = screen->get_param(screen, PIPE_CAP_MIN_TEXTURE_GATHER_OFFSET);
+   c->MaxProgramTextureGatherOffset = screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_GATHER_OFFSET);
+
    c->UniformBooleanTrue = ~0;
 
    c->MaxTransformFeedbackBuffers =