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)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 24 May 2015 16:00:03 +0000 (12:00 -0400)
commit7518fc3c66e9b5703b987bccca7970a344deadfa
treecb085749a8909c7bd25c7ae1ee7ca6aae997fb04
parentaba3392541f38f82e3ebde251fdcca78e90adbf3
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>
src/gallium/drivers/nouveau/nv30/nv30_state_validate.c