projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8adaed9
)
st/mesa: init program MaxLocalParams, MaxEnvParams limits
author
Brian Paul
<brianp@vmware.com>
Fri, 9 Sep 2011 14:06:29 +0000
(08:06 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 9 Sep 2011 14:10:50 +0000
(08:10 -0600)
Use the same limit for all parameter classes.
src/mesa/state_tracker/st_extensions.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_extensions.c
b/src/mesa/state_tracker/st_extensions.c
index a41e9e87261009cc37e673178433504964583f40..9f5567652ef95cbf2cfd6961c96eb3d1b87b1da3 100644
(file)
--- 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 */