nv50: fix clip state validation
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Tue, 10 Jan 2012 20:33:48 +0000 (21:33 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Tue, 10 Jan 2012 20:45:31 +0000 (21:45 +0100)
commitbd38459fe922b9f672673bf8edd835937ed311ec
treef6d2711e20a87dccd9cc830c86b3703b02149578
parent8597c986d739212024bcb663470b929095230a12
nv50: fix clip state validation

Don't create clip outputs if no clip planes are enabled.

Move clip validation after program validation: we were calling
linkage validation in case the VP needed rebuilding before the
FP was validated.

The vertex program needs to be built first because when
ClipDistance is used we'll want to only enable those outputs that
are also written.
src/gallium/drivers/nv50/nv50_state_validate.c