diff options
author | Andre Maasikas <[email protected]> | 2009-09-29 09:46:29 +0300 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2009-10-15 11:16:41 -0400 |
commit | f7285bdffcd8cca1c7d3066d38907a5987e844ea (patch) | |
tree | 55743851c1343ace6698ad6077ecae20fb73352c /src/mesa/drivers/dri/r600 | |
parent | 6f8b4d9e3625c7de83247596fd6822227da04336 (diff) |
r600: clear position enable bit when when wpos is not used by FP
Makes doom3 alot nicer..
Diffstat (limited to 'src/mesa/drivers/dri/r600')
-rw-r--r-- | src/mesa/drivers/dri/r600/r700_fragprog.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r600/r700_fragprog.c b/src/mesa/drivers/dri/r600/r700_fragprog.c index 78ce3ae4366..62a1ea1a22a 100644 --- a/src/mesa/drivers/dri/r600/r700_fragprog.c +++ b/src/mesa/drivers/dri/r600/r700_fragprog.c @@ -341,6 +341,11 @@ GLboolean r700SetupFragmentProgram(GLcontext * ctx) SETbit(r700->SPI_PS_IN_CONTROL_0.u32All, POSITION_ENA_bit); SETbit(r700->SPI_INPUT_Z.u32All, PROVIDE_Z_TO_SPI_bit); } + else + { + CLEARbit(r700->SPI_PS_IN_CONTROL_0.u32All, POSITION_ENA_bit); + CLEARbit(r700->SPI_INPUT_Z.u32All, PROVIDE_Z_TO_SPI_bit); + } ui = (unNumOfReg < ui) ? ui : unNumOfReg; |