mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
cell: Added check for PIPE_FLUSH_RENDER_CACHE to cell_flush to fix black blocks during st_readpixels due to a flush wait not happening in order to allow any previous rendering to complete.
This commit is contained in:
parent
f952aac1da
commit
157ddc1418
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ cell_flush(struct pipe_context *pipe, unsigned flags,
|
|||
flags |= CELL_FLUSH_WAIT;
|
||||
}
|
||||
|
||||
if (flags & PIPE_FLUSH_SWAPBUFFERS)
|
||||
if (flags & (PIPE_FLUSH_SWAPBUFFERS | PIPE_FLUSH_RENDER_CACHE))
|
||||
flags |= CELL_FLUSH_WAIT;
|
||||
|
||||
draw_flush( cell->draw );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue