r300-gallium: Always rasterize at least one color.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Thu, 12 Mar 2009 19:13:02 +0000 (12:13 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 16 Mar 2009 06:07:30 +0000 (23:07 -0700)
src/gallium/drivers/r300/r300_state_derived.c

index 7693f2c43396c5bdfe288503ae27a771d2050966..8ef9e36b5ba51cde80891daba9dcae3520535b72 100644 (file)
@@ -208,6 +208,10 @@ static void r300_update_rs_block(struct r300_context* r300)
             }
         }
 
+        if (col_count == 0) {
+            rs->ip[0] |= R500_RS_COL_FMT(R300_RS_COL_FMT_0001);
+        }
+
         /* Set up at least one texture pointer or RS will not be happy. */
         if (tex_count == 0) {
             rs->ip[0] |=
@@ -253,6 +257,10 @@ static void r300_update_rs_block(struct r300_context* r300)
             }
         }
 
+        if (col_count == 0) {
+            rs->ip[0] |= R300_RS_COL_FMT(R300_RS_COL_FMT_0001);
+        }
+
         if (tex_count == 0) {
             rs->ip[0] |=
                 R300_RS_SEL_S(R300_RS_SEL_K0) |