summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-20 15:52:36 -0600
committerBrian <[email protected]>2007-10-20 15:52:36 -0600
commitf9aa75718708076e50033287fde993799878ecf6 (patch)
tree0244b96ffbe930c53170255995fe213716b05045 /src
parent7c8b2f7ce33a672a90de8000bcbf15ec764e9d85 (diff)
Call softpipe_unmap_surfaces() in softpipe_flush().
This fixes a DRM BO failure upon swapbuffers caused by the color buffer still being mapped. This is a bit heavy handed since we don't always need to unmap buffers when flushing. Need to pass a flag to flush() or design a new function.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/pipe/softpipe/sp_flush.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/pipe/softpipe/sp_flush.c b/src/mesa/pipe/softpipe/sp_flush.c
index f2186dbb653..5eb4d3367d1 100644
--- a/src/mesa/pipe/softpipe/sp_flush.c
+++ b/src/mesa/pipe/softpipe/sp_flush.c
@@ -63,5 +63,13 @@ softpipe_flush( struct pipe_context *pipe,
if (softpipe->sbuf_cache)
sp_flush_tile_cache(softpipe->sbuf_cache);
+
+ /* Need this call for hardware buffers before swapbuffers.
+ *
+ * there should probably be another/different flush-type function
+ * that's called before swapbuffers because we don't always want
+ * to unmap surfaces when flushing.
+ */
+ softpipe_unmap_surfaces(softpipe);
}