i965: Enable lower_clip_distance.
authorPaul Berry <stereotype441@gmail.com>
Thu, 15 Sep 2011 22:16:08 +0000 (15:16 -0700)
committerPaul Berry <stereotype441@gmail.com>
Fri, 23 Sep 2011 22:32:33 +0000 (15:32 -0700)
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@anholt.net>
src/mesa/drivers/dri/i965/brw_context.c

index cb3731907e2c4c1fc3bbb2ad7e7a3505461c313b..95eb357dce7ed0844118fb410b51752ebbfc3ae2 100644 (file)
@@ -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);