summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-09-09 08:06:29 -0600
committerBrian Paul <[email protected]>2011-09-09 08:10:50 -0600
commitb94a926f396d366b6bb5d24b32dd93ffb7609205 (patch)
treed2b24826149fa6c13fab1c34e84026e3bc5fc8be /src/mesa
parent8adaed934727f9efa61686ffe0f528d40c693862 (diff)
st/mesa: init program MaxLocalParams, MaxEnvParams limits
Use the same limit for all parameter classes.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_extensions.c6
1 files changed, 6 insertions, 0 deletions
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 */