r300g: initialize VAP_VTX_STATE_CNTL
authorMarek Olšák <maraeo@gmail.com>
Wed, 11 Aug 2010 00:58:50 +0000 (02:58 +0200)
committerMarek Olšák <maraeo@gmail.com>
Wed, 11 Aug 2010 02:48:56 +0000 (04:48 +0200)
This got lost during the rasterizer rewrite.

src/gallium/drivers/r300/r300_state_derived.c

index 39000477cb0506a5487965f895619e189edd6a40..c047a127ba70abc1b753d372e50e3e4c29de14f7 100644 (file)
@@ -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;