summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_context.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-10-07 09:13:09 -0700
committerEric Anholt <eric@anholt.net>2010-10-07 16:41:13 -0700
commit4d202da7a4951eb534f77014238e7cdca9f781e9 (patch)
tree9a7afe95a078f017a663177c9d9386b0be2ce0f7 /src/mesa/drivers/dri/i965/brw_context.c
parent1ae5cc2e67a02b3105b5539b5dbc6a69cbb57889 (diff)
i965: Disable emitting if () statements on gen6 until we really fix them.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 4b44e2adec..fa82dfda8f 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -122,6 +122,9 @@ GLboolean brwCreateContext( int api,
(i == MESA_SHADER_FRAGMENT);
ctx->ShaderCompilerOptions[i].EmitNoIndirectTemp =
(i == MESA_SHADER_FRAGMENT);
+
+ if (intel->gen == 6)
+ ctx->ShaderCompilerOptions[i].EmitNoIfs = GL_TRUE;
}
ctx->Const.VertexProgram.MaxNativeInstructions = (16 * 1024);