diff options
author | Paul Berry <[email protected]> | 2011-09-15 15:16:08 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2011-09-23 15:32:33 -0700 |
commit | b9ef2b85b41272da9ed95071307310f9749cbf2b (patch) | |
tree | 0247f33d766d3a4459ea168ba6e83bea4a1a2d8f /src/mesa/drivers | |
parent | 2d686fe911a89fa477ee3848da41ebfb100500bf (diff) |
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 <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | 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 cb3731907e2..95eb357dce7 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); |