diff options
author | Ian Romanick <[email protected]> | 2010-09-13 11:05:05 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-09-13 13:03:10 -0700 |
commit | 4de7a3b76add1940f7316253a619c3728025d9db (patch) | |
tree | f7878bd175520ff1af8a15f5bae8ed1d0be8aa50 /src/mesa/drivers | |
parent | 87708e8c90220cc1997cef9de9b394c04d952be9 (diff) |
i965: Request that returns be lowered in shader main
Fixes piglit tests glsl-vs-main-return and glsl-fs-main-return.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.c | 1 |
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 b8283b4605b..de78400d424 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); |