[Mesa-dev] [PATCH 2/2] st/mesa: set MaxUnrollIterations = 64
Brian Paul
brianp at vmware.com
Tue Mar 20 16:44:58 PDT 2012
The default was 32 for the EmitNoLoops=0 case. This allows the oZone3D
soft shadows test to work properly with the vmware driver.
---
src/mesa/state_tracker/st_extensions.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index 33bc6ed..73a59fc 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -216,6 +216,8 @@ void st_init_limits(struct st_context *st)
if (options->EmitNoLoops)
options->MaxUnrollIterations = MIN2(screen->get_shader_param(screen, sh, PIPE_SHADER_CAP_MAX_INSTRUCTIONS), 65536);
+ else
+ options->MaxUnrollIterations = 64;
}
/* PIPE_SHADER_CAP_MAX_INPUTS for the FS specifies the maximum number
--
1.7.3.4
More information about the mesa-dev
mailing list