vc4: Bump maximum uniforms count to match other drivers.
authorEric Anholt <eric@anholt.net>
Mon, 15 Sep 2014 20:26:24 +0000 (13:26 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 15 Sep 2014 22:04:38 +0000 (15:04 -0700)
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

index 1c4d9dbf843499a0417714d3a2585ddbac517a38..e5b683e93ea9f3dce7e6b9abc40bd2905ebad3eb 100644 (file)
@@ -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: