From b94a926f396d366b6bb5d24b32dd93ffb7609205 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 9 Sep 2011 08:06:29 -0600 Subject: st/mesa: init program MaxLocalParams, MaxEnvParams limits Use the same limit for all parameter classes. --- src/mesa/state_tracker/st_extensions.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mesa/state_tracker/st_extensions.c') diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index a41e9e87261..9f5567652ef 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -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 */ -- cgit v1.2.3