mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
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.
This commit is contained in:
parent
7c8b2f7ce3
commit
f9aa757187
1 changed files with 8 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue