diff options
author | Andre Maasikas <[email protected]> | 2009-09-29 09:46:29 +0300 |
---|---|---|
committer | Cooper Yuan <[email protected]> | 2009-09-29 16:02:00 +0800 |
commit | a230ad2bc440e9d332482ea453e7ab7f4a5b8bd2 (patch) | |
tree | 090f3f86c5893065781d094c87c24c76de3e5844 /src | |
parent | 3a8d525373c50c6cdc9ae5dd00e7298ab58df8c6 (diff) |
r600: clear position enable bit when when wpos is not used by FP
Makes doom3 alot nicer..
Diffstat (limited to 'src')
-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; |