i965: Request that returns be lowered in shader main

Fixes piglit tests glsl-vs-main-return and glsl-fs-main-return.
This commit is contained in:
Ian Romanick 2010-09-13 11:05:05 -07:00
parent 87708e8c90
commit 4de7a3b76a

View 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);