aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorBryan Cain <[email protected]>2011-08-31 17:28:53 -0500
committerBryan Cain <[email protected]>2011-08-31 21:49:26 -0500
commit488fe51cf823ccd137c667f1e92dd86f8323b723 (patch)
tree498eaba0b4e1e0de46ef932417d9e6b6e8165c20 /src/mesa/drivers/dri
parent7b1d94e5d1f53ac5f59000176aea1d02fc9a1181 (diff)
mesa: Replace the EmitNoIfs compiler flag with a MaxIfDepth flag.
This is a better, more fine-grained way of lowering if statements. Fixes the game And Yet It Moves on nv50. Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/i915/i915_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i915/i915_context.c b/src/mesa/drivers/dri/i915/i915_context.c
index 11bee140ab6..e807281041a 100644
--- a/src/mesa/drivers/dri/i915/i915_context.c
+++ b/src/mesa/drivers/dri/i915/i915_context.c
@@ -189,7 +189,7 @@ i915CreateContext(int api,
struct gl_shader_compiler_options *const fs_options =
& ctx->ShaderCompilerOptions[MESA_SHADER_FRAGMENT];
- fs_options->EmitNoIfs = GL_TRUE;
+ fs_options->MaxIfDepth = 0;
fs_options->EmitNoNoise = GL_TRUE;
fs_options->EmitNoPow = GL_TRUE;
fs_options->EmitNoMainReturn = GL_TRUE;