Mesa (master): vc4: Bump maximum uniforms count to match other drivers.
Eric Anholt
anholt at kemper.freedesktop.org
Mon Sep 15 22:07:30 UTC 2014
Module: Mesa
Branch: master
Commit: 33443f506f27dc20a754900f07fe9597129c934b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=33443f506f27dc20a754900f07fe9597129c934b
Author: Eric Anholt <eric at anholt.net>
Date: Mon Sep 15 13:26:24 2014 -0700
vc4: Bump maximum uniforms count to match other drivers.
We don't have any specific limits in the hardware, just like the other
GPUs, so match their behavior. Fixes minmax_gles2 and several other
piglit tests relying on the specced uniform minmax values.
---
src/gallium/drivers/vc4/vc4_screen.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/vc4/vc4_screen.c b/src/gallium/drivers/vc4/vc4_screen.c
index 1c4d9db..e5b683e 100644
--- a/src/gallium/drivers/vc4/vc4_screen.c
+++ b/src/gallium/drivers/vc4/vc4_screen.c
@@ -278,7 +278,7 @@ vc4_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader,
case PIPE_SHADER_CAP_MAX_TEMPS:
return 64; /* Max native temporaries. */
case PIPE_SHADER_CAP_MAX_CONST_BUFFER_SIZE:
- return 64 * sizeof(float[4]);
+ return 16 * 1024 * sizeof(float);
case PIPE_SHADER_CAP_MAX_CONST_BUFFERS:
return 1;
case PIPE_SHADER_CAP_MAX_PREDS:
More information about the mesa-commit
mailing list