projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d686fe
)
i965: Enable lower_clip_distance.
author
Paul Berry
<stereotype441@gmail.com>
Thu, 15 Sep 2011 22:16:08 +0000
(15:16 -0700)
committer
Paul 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
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_context.c
b/src/mesa/drivers/dri/i965/brw_context.c
index cb3731907e2c4c1fc3bbb2ad7e7a3505461c313b..95eb357dce7ed0844118fb410b51752ebbfc3ae2 100644
(file)
--- 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);