[Mesa-dev] [PATCH 07/10] i965: Set SMOOTH_NOPERSPECTIVE_MIXED... varying constraint in compiler option

Vincent Lejeune vljn at ovi.com
Thu Feb 23 12:12:28 PST 2012


---
 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 65de260..de4208b 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -179,6 +179,7 @@ brwCreateContext(int api,
       ctx->ShaderCompilerOptions[i].EmitNoIndirectTemp =
 	 (i == MESA_SHADER_FRAGMENT);
       ctx->ShaderCompilerOptions[i].LowerClipDistance = true;
+	ctx->ShaderCompilerOptions[i].VaryingsPackingConstraint = SMOOTH_NOPERSPECTIVE_MIXED;
    }
 
    ctx->Const.VertexProgram.MaxNativeInstructions = (16 * 1024);
-- 
1.7.7



More information about the mesa-dev mailing list