From: Andre Maasikas Date: Tue, 29 Sep 2009 06:46:29 +0000 (+0300) Subject: r600: clear position enable bit when when wpos is not used by FP X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a230ad2bc440e9d332482ea453e7ab7f4a5b8bd2;p=mesa.git r600: clear position enable bit when when wpos is not used by FP Makes doom3 alot nicer.. --- 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;