[Mesa-dev] [PATCH] i965 Gen6+: De-compact clip plane constants for old VS backend.
Eric Anholt
eric at anholt.net
Wed Oct 12 09:30:09 PDT 2011
On Mon, 10 Oct 2011 15:13:13 -0700, Paul Berry <stereotype441 at gmail.com> wrote:
> In commit 018ea68d8780ab5baeef0b8122b8410e5e55ae6d, when I
> de-compacted clip planes on Gen6+, I updated both the old and new VS
> back-ends to reflect the change in how clip planes are stored, but I
> failed to change the code in gen6_vs_state.c that uploads clip plane
> constants when using the old VS back-end.
>
> As a result, if the set of enabled clip planes wasn't contiguous
> starting with 0, then clipping would not occur properly. This patch
> corrects gen6_vs_state.c to upload clip plane constants in the new
> de-compacted form.
>
> This only affects the old VS back-end (which is used for
> fixed-function and ARB vertex programs, not for GLSL vertex shaders).
>
> Fixes Piglit test fixed-clip-enables.
Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20111012/be6de498/attachment.pgp>
More information about the mesa-dev
mailing list