[Mesa-dev] [PATCH] i965: Set SMOOTH_NOPERSPECTIVE_MIXED... varying constraint in compiler option
Vincent Lejeune
vljn at ovi.com
Fri Feb 24 11:06:48 PST 2012
v2: update enum name
---
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..bc82d7d 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 = PACKING_CONSTRAINT_SMOOTH_NOPERSPECTIVE_MIXED;
}
ctx->Const.VertexProgram.MaxNativeInstructions = (16 * 1024);
--
1.7.7
More information about the mesa-dev
mailing list