summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Maasikas <amaasikas@gmail.com>2009-09-29 09:46:29 +0300
committerCooper Yuan <cooperyuan@gmail.com>2009-09-29 16:02:00 +0800
commita230ad2bc440e9d332482ea453e7ab7f4a5b8bd2 (patch)
tree090f3f86c5893065781d094c87c24c76de3e5844
parent3a8d525373c50c6cdc9ae5dd00e7298ab58df8c6 (diff)
downloadexternal_mesa3d-a230ad2bc440e9d332482ea453e7ab7f4a5b8bd2.zip
external_mesa3d-a230ad2bc440e9d332482ea453e7ab7f4a5b8bd2.tar.gz
external_mesa3d-a230ad2bc440e9d332482ea453e7ab7f4a5b8bd2.tar.bz2
r600: clear position enable bit when when wpos is not used by FP
Makes doom3 alot nicer..
-rw-r--r--src/mesa/drivers/dri/r600/r700_fragprog.c5
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 78ce3ae..62a1ea1 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;