st/mesa: init program MaxLocalParams, MaxEnvParams limits

Use the same limit for all parameter classes.
This commit is contained in:
Brian Paul
2011-09-09 08:06:29 -06:00
parent 8adaed9347
commit b94a926f39

View File

@@ -170,6 +170,12 @@ void st_init_limits(struct st_context *st)
/* raise MaxParameters if native support is higher */
pc->MaxParameters = MAX2(pc->MaxParameters, pc->MaxNativeParameters);
/* Gallium doesn't really care about local vs. env parameters so use the
* same limits.
*/
pc->MaxLocalParams = pc->MaxParameters;
pc->MaxEnvParams = pc->MaxParameters;
options->EmitNoNoise = TRUE;
/* TODO: make these more fine-grained if anyone needs it */