summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_screen.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-08-18 11:07:31 -0700
committerEric Anholt <[email protected]>2014-08-18 15:27:43 -0700
commit76f687d5a5be9d3bce8d05bcfef97a3d74ca1f18 (patch)
tree692d6e1d3e2e4209d66188aefeed93554965e416 /src/gallium/drivers/vc4/vc4_screen.c
parent489350e5701a4a0855e622fa12fbf3700101c5d7 (diff)
vc4: Add support for swizzling of texture colors.
Fixes swapped colors on the copypix demo and some piglit tests like pbo-teximage-tiling .
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_screen.c')
-rw-r--r--src/gallium/drivers/vc4/vc4_screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_screen.c b/src/gallium/drivers/vc4/vc4_screen.c
index 852ff871322..41fd373de11 100644
--- a/src/gallium/drivers/vc4/vc4_screen.c
+++ b/src/gallium/drivers/vc4/vc4_screen.c
@@ -293,7 +293,7 @@ vc4_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader,
return 0;
case PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS:
case PIPE_SHADER_CAP_MAX_SAMPLER_VIEWS:
- return 16;
+ return VC4_MAX_TEXTURE_SAMPLERS;
case PIPE_SHADER_CAP_PREFERRED_IR:
return PIPE_SHADER_IR_TGSI;
default: