summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-09-13 11:05:05 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-09-13 13:03:10 -0700
commit4de7a3b76add1940f7316253a619c3728025d9db (patch)
treef7878bd175520ff1af8a15f5bae8ed1d0be8aa50
parent87708e8c90220cc1997cef9de9b394c04d952be9 (diff)
i965: Request that returns be lowered in shader main
Fixes piglit tests glsl-vs-main-return and glsl-fs-main-return.
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index b8283b4605..de78400d42 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -115,6 +115,7 @@ GLboolean brwCreateContext( int api,
ctx->ShaderCompilerOptions[i].EmitCondCodes = GL_TRUE;
ctx->ShaderCompilerOptions[i].EmitNVTempInitialization = GL_TRUE;
ctx->ShaderCompilerOptions[i].EmitNoNoise = GL_TRUE;
+ ctx->ShaderCompilerOptions[i].EmitNoMainReturn = GL_TRUE;
}
ctx->Const.VertexProgram.MaxNativeInstructions = (16 * 1024);