From: Ian Romanick Date: Mon, 13 Sep 2010 18:05:05 +0000 (-0700) Subject: i965: Request that returns be lowered in shader main X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4de7a3b76add1940f7316253a619c3728025d9db;p=mesa.git i965: Request that returns be lowered in shader main Fixes piglit tests glsl-vs-main-return and glsl-fs-main-return. --- 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);