r300g: emit blend LTE/GTE thresholds on >=RV350
authorMarek Olšák <maraeo@gmail.com>
Fri, 8 Jan 2010 13:09:57 +0000 (14:09 +0100)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Wed, 13 Jan 2010 02:08:58 +0000 (18:08 -0800)
As per classic r300.

src/gallium/drivers/r300/r300_state_invariant.c

index f25f3ca217d73e4d9f0d6f2c72fd8e6d3181f47a..b0f309695c9aa0723e8dc2182292830528457cdb 100644 (file)
@@ -115,10 +115,12 @@ void r300_emit_invariant_state(struct r300_context* r300)
     OUT_CS_REG(R300_SC_HYPERZ, 0x0000001C);
     OUT_CS_REG(R300_SC_EDGERULE, 0x2DA49525);
     OUT_CS_REG(R300_RB3D_AARESOLVE_CTL, 0x00000000);
-    if (caps->is_r500) {
+
+    if (caps->family >= CHIP_FAMILY_RV350) {
         OUT_CS_REG(R500_RB3D_DISCARD_SRC_PIXEL_LTE_THRESHOLD, 0x01010101);
         OUT_CS_REG(R500_RB3D_DISCARD_SRC_PIXEL_GTE_THRESHOLD, 0xFEFEFEFE);
     }
+
     OUT_CS_REG(R300_ZB_BW_CNTL, 0x00000000);
     OUT_CS_REG(R300_ZB_DEPTHCLEARVALUE, 0x00000000);
     OUT_CS_REG(R300_ZB_HIZ_OFFSET, 0x00000000);