diff options
author | Dave Airlie <[email protected]> | 2010-08-23 20:28:02 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2010-08-23 20:31:21 +1000 |
commit | eb430b0e948caf02b9f4095d0e1435880073c2aa (patch) | |
tree | fbc94f4f3c9d05ab408a66b6fe3763397a3a8ba3 /src/gallium/drivers/r300/r300_flush.c | |
parent | e607b67ebc0d15f6709fc8f9c79afeeda8ac1031 (diff) |
r300g: avoid stall in no-tcl drawing when mapping vbo
the current code reuses the same vbo over and over, however after a flush
we'd stall and wait for mapping on the vbo when we should just fire and forget.
On a gears test this brings me from ~620 to ~750 on my rv530 in swtcl mode.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r300/r300_flush.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_flush.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_flush.c b/src/gallium/drivers/r300/r300_flush.c index fe182b6615b..f00707b0665 100644 --- a/src/gallium/drivers/r300/r300_flush.c +++ b/src/gallium/drivers/r300/r300_flush.c @@ -43,6 +43,8 @@ static void r300_flush(struct pipe_context* pipe, u_upload_flush(r300->upload_vb); u_upload_flush(r300->upload_ib); + if (r300->draw) + r300_draw_flush_vbuf(r300); if (r300->dirty_hw) { r300_emit_hyperz_end(r300); r300_emit_query_end(r300); |