Mesa (master): i965: Enable lower_clip_distance.
Paul Berry
stereotype441 at kemper.freedesktop.org
Fri Sep 23 22:43:48 UTC 2011
Module: Mesa
Branch: master
Commit: b9ef2b85b41272da9ed95071307310f9749cbf2b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b9ef2b85b41272da9ed95071307310f9749cbf2b
Author: Paul Berry <stereotype441 at gmail.com>
Date: Thu Sep 15 15:16:08 2011 -0700
i965: Enable lower_clip_distance.
i965 requires gl_ClipDistance to be formatted as an array of 2 vec4's
(as opposed to an array of 8 floats), so enable the lowering pass that
performs this conversion.
Reviewed-by: Eric Anholt <eric at anholt.net>
---
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 cb37319..95eb357 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -120,6 +120,7 @@ GLboolean brwCreateContext( int api,
(i == MESA_SHADER_FRAGMENT);
ctx->ShaderCompilerOptions[i].EmitNoIndirectTemp =
(i == MESA_SHADER_FRAGMENT);
+ ctx->ShaderCompilerOptions[i].LowerClipDistance = GL_TRUE;
}
ctx->Const.VertexProgram.MaxNativeInstructions = (16 * 1024);
More information about the mesa-commit
mailing list