Mesa (master): r300g: initialize VAP_VTX_STATE_CNTL

Marek Olšák mareko at kemper.freedesktop.org
Wed Aug 11 03:16:32 UTC 2010


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

Author: Marek Olšák <maraeo at gmail.com>
Date:   Wed Aug 11 02:58:50 2010 +0200

r300g: initialize VAP_VTX_STATE_CNTL

This got lost during the rasterizer rewrite.

---

 src/gallium/drivers/r300/r300_state_derived.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_state_derived.c b/src/gallium/drivers/r300/r300_state_derived.c
index 3900047..c047a12 100644
--- a/src/gallium/drivers/r300/r300_state_derived.c
+++ b/src/gallium/drivers/r300/r300_state_derived.c
@@ -337,6 +337,11 @@ static void r300_update_rs_block(struct r300_context *r300)
         rX00_rs_tex_write = r300_rs_tex_write;
     }
 
+    /* 0x5555 copied from classic, which means:
+     * Select user color 0 for COLOR0 up to COLOR7.
+     * What the hell does that mean? */
+    rs.vap_vtx_state_cntl = 0x5555;
+
     /* The position is always present in VAP. */
     rs.vap_vsm_vtx_assm |= R300_INPUT_CNTL_POS;
     rs.vap_out_vtx_fmt[0] |= R300_VAP_OUTPUT_VTX_FMT_0__POS_PRESENT;




More information about the mesa-commit mailing list