[Mesa-dev] [PATCH 3/3] st/mesa: init program MaxLocalParams, MaxEnvParams limits
Brian Paul
brian.e.paul at gmail.com
Tue Aug 30 13:26:28 PDT 2011
From: Brian Paul <brianp at vmware.com>
---
src/mesa/state_tracker/st_extensions.c | 6 ++++++
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 8e90093..33057cb 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 */
--
1.7.3.4
More information about the mesa-dev
mailing list