diff options
author | Andre Maasikas <amaasikas@gmail.com> | 2009-09-29 09:46:29 +0300 |
---|---|---|
committer | Cooper Yuan <cooperyuan@gmail.com> | 2009-09-29 16:02:00 +0800 |
commit | a230ad2bc440e9d332482ea453e7ab7f4a5b8bd2 (patch) | |
tree | 090f3f86c5893065781d094c87c24c76de3e5844 /src/mesa/drivers/dri/r600 | |
parent | 3a8d525373c50c6cdc9ae5dd00e7298ab58df8c6 (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 78ce3ae436..62a1ea1a22 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; |