summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i915
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-07-19 10:21:58 -0700
committerEric Anholt <[email protected]>2010-07-19 10:47:08 -0700
commit95c08920ea3d040360e5cc51d8a852d21a0329ee (patch)
treeb199e096f3611df9971a4c0e8e09c2a97d62a029 /src/mesa/drivers/dri/i915
parent29ce44ad2b8d37ea54923f1d1856b44ef26903e5 (diff)
i915: Ask the compiler to flatten out all the if statements that it can.
Diffstat (limited to 'src/mesa/drivers/dri/i915')
-rw-r--r--src/mesa/drivers/dri/i915/i915_context.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i915/i915_context.c b/src/mesa/drivers/dri/i915/i915_context.c
index b3fe1c05d66..d8715cf026d 100644
--- a/src/mesa/drivers/dri/i915/i915_context.c
+++ b/src/mesa/drivers/dri/i915/i915_context.c
@@ -174,6 +174,8 @@ i915CreateContext(int api,
ctx->FragmentProgram._MaintainTexEnvProgram = GL_TRUE;
+ ctx->Shader.EmitNoIfs = GL_TRUE;
+
ctx->Const.MaxDrawBuffers = 1;
_tnl_init_vertices(ctx, ctx->Const.MaxArrayLockSize + 12,