Mesa (master): st/mesa: always call FLUSH_CURRENT before st->pipe->flush()
Keith Whitwell
keithw at kemper.freedesktop.org
Thu Feb 18 09:04:04 UTC 2010
Module: Mesa
Branch: master
Commit: 37e955d491664d27b1335c60ee40b730af6a1515
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=37e955d491664d27b1335c60ee40b730af6a1515
Author: Keith Whitwell <keithw at vmware.com>
Date: Thu Feb 18 08:59:19 2010 +0000
st/mesa: always call FLUSH_CURRENT before st->pipe->flush()
Undoes part of commit f455ca6 which would permit pipe->flush() to be
called while the VBO module still had its buffers mapped. Some
drivers care deeply about this. Sorry for not spotting this earlier.
---
src/mesa/state_tracker/st_cb_flush.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/mesa/state_tracker/st_cb_flush.c b/src/mesa/state_tracker/st_cb_flush.c
index 0ddfce4..573c783 100644
--- a/src/mesa/state_tracker/st_cb_flush.c
+++ b/src/mesa/state_tracker/st_cb_flush.c
@@ -91,8 +91,7 @@ display_front_buffer(struct st_context *st)
void st_flush( struct st_context *st, uint pipeFlushFlags,
struct pipe_fence_handle **fence )
{
- if (pipeFlushFlags & PIPE_FLUSH_RENDER_CACHE)
- FLUSH_CURRENT(st->ctx, 0);
+ FLUSH_CURRENT(st->ctx, 0);
/* Release any vertex buffers that might potentially be accessed in
* successive frames:
More information about the mesa-commit
mailing list