st/mesa: check in advance in st_draw_vbo whether the bitmap cache is empty
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
@@ -182,7 +182,9 @@ st_draw_vbo(struct gl_context *ctx,
|
||||
/* Mesa core state should have been validated already */
|
||||
assert(ctx->NewState == 0x0);
|
||||
|
||||
st_flush_bitmap_cache(st);
|
||||
if (unlikely(!st->bitmap.cache.empty))
|
||||
st_flush_bitmap_cache(st);
|
||||
|
||||
st_invalidate_readpix_cache(st);
|
||||
|
||||
/* Validate state. */
|
||||
|
||||
Reference in New Issue
Block a user