summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2010-01-28 01:28:59 -0800
committerCorbin Simpson <MostAwesomeDude@gmail.com>2010-01-28 03:05:46 -0800
commit12f97d9c09dee7fffe073c943fd8428db4362e0c (patch)
treecdc80b1cad3de8893613ed21b8e60fd145ed7515 /src
parentb9ae570bab5d0fefef93a9f6808603971304a74d (diff)
r300g: Fix bizarre half-flushes with immd mode.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r300/r300_render.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c
index 354f3bb921..bcb3707149 100644
--- a/src/gallium/drivers/r300/r300_render.c
+++ b/src/gallium/drivers/r300/r300_render.c
@@ -168,6 +168,8 @@ static void r300_emit_draw_arrays_immediate(struct r300_context *r300,
}
}
+ r300_emit_dirty_state(r300);
+
BEGIN_CS(10 + count * vertex_size);
OUT_CS_REG(R300_GA_COLOR_CONTROL,
r300_provoking_vertex_fixes(r300, mode));
@@ -419,7 +421,6 @@ void r300_draw_arrays(struct pipe_context* pipe, unsigned mode,
r300_emit_buffer_validate(r300);
if (immd_is_good_idea(r300, count)) {
- r300_emit_dirty_state(r300);
r300_emit_draw_arrays_immediate(r300, mode, start, count);
} else {
if (!r300_setup_vertex_buffers(r300)) {