diff options
author | Corbin Simpson <MostAwesomeDude@gmail.com> | 2009-03-12 12:13:02 -0700 |
---|---|---|
committer | Corbin Simpson <MostAwesomeDude@gmail.com> | 2009-03-15 23:07:30 -0700 |
commit | c5742cab195a77b2a075950f9d7812faeacb6621 (patch) | |
tree | 837ff6f6b49e889df3a3cf5c854191459364d9db | |
parent | 954a9fadad6a35ba360f4f28499fda74947d37fb (diff) |
r300-gallium: Always rasterize at least one color.
-rw-r--r-- | src/gallium/drivers/r300/r300_state_derived.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_state_derived.c b/src/gallium/drivers/r300/r300_state_derived.c index 7693f2c433..8ef9e36b5b 100644 --- a/src/gallium/drivers/r300/r300_state_derived.c +++ b/src/gallium/drivers/r300/r300_state_derived.c @@ -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) | |