From: Eric Anholt Date: Mon, 15 Sep 2014 20:26:24 +0000 (-0700) Subject: vc4: Bump maximum uniforms count to match other drivers. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=33443f506f27dc20a754900f07fe9597129c934b;p=mesa.git 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. --- diff --git a/src/gallium/drivers/vc4/vc4_screen.c b/src/gallium/drivers/vc4/vc4_screen.c index 1c4d9dbf843..e5b683e93ea 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: