vc4: Bump maximum ARB program temporaries to match Intel/AMD.
authorEric Anholt <eric@anholt.net>
Mon, 15 Sep 2014 20:32:18 +0000 (13:32 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 15 Sep 2014 22:05:06 +0000 (15:05 -0700)
This query has always been useless, but we could potentially reject
well-formed, runnable programs if we expose a value that's too low.

src/gallium/drivers/vc4/vc4_screen.c

index e5b683e93ea9f3dce7e6b9abc40bd2905ebad3eb..a8ad493a55e32b7f3a8a7ffca69a8b53981b7d32 100644 (file)
@@ -276,7 +276,7 @@ vc4_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader,
         case PIPE_SHADER_CAP_MAX_INPUTS:
                 return 16;
         case PIPE_SHADER_CAP_MAX_TEMPS:
-                return 64; /* Max native temporaries. */
+                return 256; /* GL_MAX_PROGRAM_TEMPORARIES_ARB */
         case PIPE_SHADER_CAP_MAX_CONST_BUFFER_SIZE:
                 return 16 * 1024 * sizeof(float);
         case PIPE_SHADER_CAP_MAX_CONST_BUFFERS: