summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2015-03-13 20:17:45 +0100
committerDave Airlie <airlied@redhat.com>2015-06-16 12:34:26 +1000
commitf2b3f0c17009b9f2fb80875663bd7431d95e7945 (patch)
tree5430b15e82573fc88622db5769be66461a7ac2d6
parent1b342606a627b85e62370f5bec934648173e7013 (diff)
virgl: set to 16 max texture samplers
This value should match with the number of virgl_sampler_view. PIPE_MAX_SAMPLERS is 18, but 2 are internals, and shouldn't probably be advertised. Fixes piglit spec/!opengl 2.0/max-samplers crash.
-rw-r--r--src/gallium/drivers/virgl/virgl_screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/virgl/virgl_screen.c b/src/gallium/drivers/virgl/virgl_screen.c
index 5c29bda02ee..2feb14df66a 100644
--- a/src/gallium/drivers/virgl/virgl_screen.c
+++ b/src/gallium/drivers/virgl/virgl_screen.c
@@ -244,7 +244,7 @@ virgl_get_shader_param(struct pipe_screen *screen, unsigned shader, enum pipe_sh
case PIPE_SHADER_CAP_SUBROUTINES:
return 1;
case PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS:
- return PIPE_MAX_SAMPLERS;
+ return 16;
case PIPE_SHADER_CAP_INTEGERS:
return vscreen->caps.caps.v1.glsl_level >= 130;
case PIPE_SHADER_CAP_MAX_CONTROL_FLOW_DEPTH: