st/mesa: Make the frontbuffer visible on st_flush(PIPE_FLUSH_FRAME).
authorFrancisco Jerez <currojerez@riseup.net>
Tue, 16 Feb 2010 16:21:10 +0000 (17:21 +0100)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 17 Feb 2010 22:15:48 +0000 (23:15 +0100)
commitf455ca6490fcb65781b21f81c7117bd923e250d1
treede022d61e66ab09d61aa3b48efccec3e22689e41
parent7ccbeb41acd2f5c416005bd48c11996a054a869a
st/mesa: Make the frontbuffer visible on st_flush(PIPE_FLUSH_FRAME).

So far the frontbuffer was only being flushed on st_glFlush and
st_glFinish, however, a co-state tracker may need to make sure that
any frontbuffer changes are already on its way to the actual front.

The dri2 state tracker will need this for event-driven GL applications
to resize properly (It could also be done calling "dri_flush_frontbuffer",
but that way we would flush unnecessarily in the double-buffered case).

Additionally this patch avoids flushing the mesa rendering cache if
PIPE_FLUSH_RENDER_CACHE wasn't specified.
src/mesa/state_tracker/st_cb_flush.c