From 4de7a3b76add1940f7316253a619c3728025d9db Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 13 Sep 2010 11:05:05 -0700 Subject: i965: Request that returns be lowered in shader main Fixes piglit tests glsl-vs-main-return and glsl-fs-main-return. --- src/mesa/drivers/dri/i965/brw_context.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa') 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); -- cgit v1.2.3