summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri
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 /src/mesa/drivers/dri
parent3a8d525373c50c6cdc9ae5dd00e7298ab58df8c6 (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')
-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 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;