i965: Request that returns be lowered in shader main
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 13 Sep 2010 18:05:05 +0000 (11:05 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 13 Sep 2010 20:03:10 +0000 (13:03 -0700)
Fixes piglit tests glsl-vs-main-return and glsl-fs-main-return.

src/mesa/drivers/dri/i965/brw_context.c

index b8283b4605b051c27f4e32722b06729c9c252046..de78400d424b21bdaf7e0a7680917e40e7fec0f1 100644 (file)
@@ -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);