diff options
author | Marek Olšák <[email protected]> | 2011-06-19 21:02:42 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-06-19 21:09:18 +0200 |
commit | d1f66a9424d087f81d0040aafde033bd5cb1ca72 (patch) | |
tree | 98bcd87e75883e0f19c24c118330803bce39c86a /src/gallium/drivers/r300/r300_render.c | |
parent | 8623c68aec95e0883308051068b3496a85e8b9ea (diff) |
u_vbuf_mgr: make u_vbuf_mgr_draw_begin return flags in a bitmask
Diffstat (limited to 'src/gallium/drivers/r300/r300_render.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_render.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c index 7cf0aba2ed0..b31141a518e 100644 --- a/src/gallium/drivers/r300/r300_render.c +++ b/src/gallium/drivers/r300/r300_render.c @@ -768,7 +768,6 @@ static void r300_draw_vbo(struct pipe_context* pipe, { struct r300_context* r300 = r300_context(pipe); struct pipe_draw_info info = *dinfo; - boolean buffers_updated, uploader_flushed; info.indexed = info.indexed && r300->index_buffer.buffer; @@ -780,9 +779,7 @@ static void r300_draw_vbo(struct pipe_context* pipe, r300_update_derived_state(r300); /* Start the vbuf manager and update buffers if needed. */ - u_vbuf_mgr_draw_begin(r300->vbuf_mgr, &info, - &buffers_updated, &uploader_flushed); - if (buffers_updated) { + if (u_vbuf_mgr_draw_begin(r300->vbuf_mgr, &info) & U_VBUF_BUFFERS_UPDATED) { r300->vertex_arrays_dirty = TRUE; } |