diff options
author | Dave Airlie <airlied@redhat.com> | 2010-07-18 18:47:08 +1000 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2010-07-18 18:11:29 +0200 |
commit | 4eaf591d1504f61e131f77f01711d27a75d02e90 (patch) | |
tree | c6e634f652b0418734a1afc3b45d97d0c9f18bed /src/gallium/drivers/r300/r300_flush.c | |
parent | 14e362c79aedd9b463c74ef2e56ad96101ceb2af (diff) | |
download | external_mesa3d-4eaf591d1504f61e131f77f01711d27a75d02e90.zip external_mesa3d-4eaf591d1504f61e131f77f01711d27a75d02e90.tar.gz external_mesa3d-4eaf591d1504f61e131f77f01711d27a75d02e90.tar.bz2 |
r300g: u_upload optimisation
fix vb/ib uploads
Diffstat (limited to 'src/gallium/drivers/r300/r300_flush.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_flush.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_flush.c b/src/gallium/drivers/r300/r300_flush.c index 9e5bfeb..ae7b575 100644 --- a/src/gallium/drivers/r300/r300_flush.c +++ b/src/gallium/drivers/r300/r300_flush.c @@ -25,6 +25,7 @@ #include "draw/draw_private.h" #include "util/u_simple_list.h" +#include "util/u_upload_mgr.h" #include "r300_context.h" #include "r300_cs.h" @@ -39,6 +40,9 @@ static void r300_flush(struct pipe_context* pipe, struct r300_atom *atom; struct r300_fence **rfence = (struct r300_fence**)fence; + u_upload_flush(r300->upload_vb); + u_upload_flush(r300->upload_ib); + /* We probably need to flush Draw, but we may have been called from * within Draw. This feels kludgy, but it might be the best thing. * |