OSDN Git Service

nv30: fix clip plane uploads and enable changes
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 24 May 2015 00:58:53 +0000 (20:58 -0400)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 3 Jun 2015 10:52:19 +0000 (11:52 +0100)
commit0f7c9815a0897ce7da1b87a4695d2c9f867da527
tree7b13e818b793a82a12515dd08ac91e4201fa022f
parentece96b4954d4b44cea19926c46f9f91fad4ca35e
nv30: fix clip plane uploads and enable changes

nv30_validate_clip depends on the rasterizer state. Also we should
upload all the new clip planes on change since next time the plane data
won't have changed, but the enables might.

This fixes fixed-clip-enables and vs-clip-vertex-enables shader tests.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 7518fc3c66e9b5703b987bccca7970a344deadfa)
src/gallium/drivers/nouveau/nv30/nv30_state_validate.c