summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/shader_api.c
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/shader/shader_api.c
parent29ce44ad2b8d37ea54923f1d1856b44ef26903e5 (diff)
i915: Ask the compiler to flatten out all the if statements that it can.
Diffstat (limited to 'src/mesa/shader/shader_api.c')
-rw-r--r--src/mesa/shader/shader_api.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/shader/shader_api.c b/src/mesa/shader/shader_api.c
index f05ebc9fcb6..cd02d7d8307 100644
--- a/src/mesa/shader/shader_api.c
+++ b/src/mesa/shader/shader_api.c
@@ -431,6 +431,7 @@ _mesa_init_shader_state(GLcontext * ctx)
ctx->Shader.EmitContReturn = GL_TRUE;
ctx->Shader.EmitCondCodes = GL_FALSE;
ctx->Shader.EmitComments = GL_FALSE;
+ ctx->Shader.EmitNoIfs = GL_FALSE;
ctx->Shader.Flags = get_shader_flags();
/* Default pragma settings */