aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_render.c
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2010-01-24 14:58:45 +1000
committerDave Airlie <[email protected]>2010-01-24 15:00:06 +1000
commit232ddfec24d2e707c4e374d817c559cc6415d609 (patch)
treeb6698777a244004adb43b5bf8021ffc63073d3b7 /src/gallium/drivers/r300/r300_render.c
parent28c3e57c8354f988f49bac69a6866418e6009a5d (diff)
r300g: fix flushing harder.
I swear ipers runs here after this commit. After we flush we need to redo the space check
Diffstat (limited to 'src/gallium/drivers/r300/r300_render.c')
-rw-r--r--src/gallium/drivers/r300/r300_render.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c
index cb2d8d45371..677031ef04e 100644
--- a/src/gallium/drivers/r300/r300_render.c
+++ b/src/gallium/drivers/r300/r300_render.c
@@ -302,6 +302,8 @@ void r300_draw_range_elements(struct pipe_context* pipe,
r300_update_derived_state(r300);
+ r300_emit_buffer_validate(r300);
+
if (!r300_setup_vertex_buffers(r300)) {
return;
}
@@ -311,8 +313,6 @@ void r300_draw_range_elements(struct pipe_context* pipe,
indexSize = 2;
}
- r300_emit_buffer_validate(r300);
-
if (!r300->winsys->add_buffer(r300->winsys, indexBuffer,
RADEON_GEM_DOMAIN_GTT, 0)) {
goto cleanup;