Mesa (master): r300g: hyperz fixing typo.

Dave Airlie airlied at kemper.freedesktop.org
Fri Dec 24 05:52:06 UTC 2010


Module: Mesa
Branch: master
Commit: 7a5fac56b2ff041a49784117103aa5a8772aef02
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7a5fac56b2ff041a49784117103aa5a8772aef02

Author: Dave Airlie <airlied at redhat.com>
Date:   Fri Dec 24 15:41:30 2010 +1000

r300g: hyperz fixing typo.

Really no idea why I didn't see this before, but these values were opposite
the register spec.

this seems to fix rv530 HiZ on my laptop, will reenable in next commit.

Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 src/gallium/drivers/r300/r300_reg.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_reg.h b/src/gallium/drivers/r300/r300_reg.h
index 613186e..d1154de 100644
--- a/src/gallium/drivers/r300/r300_reg.h
+++ b/src/gallium/drivers/r300/r300_reg.h
@@ -2631,8 +2631,8 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
 #define R300_ZB_BW_CNTL                     0x4f1c
 #	define R300_HIZ_DISABLE                              (0 << 0)
 #	define R300_HIZ_ENABLE                               (1 << 0)
-#	define R300_HIZ_MIN                                  (0 << 1)
-#	define R300_HIZ_MAX                                  (1 << 1)
+#	define R300_HIZ_MAX                                  (0 << 1)
+#	define R300_HIZ_MIN                                  (1 << 1)
 #	define R300_FAST_FILL_DISABLE                        (0 << 2)
 #	define R300_FAST_FILL_ENABLE                         (1 << 2)
 #	define R300_RD_COMP_DISABLE                          (0 << 3)




More information about the mesa-commit mailing list