freedreno: fix sysmem rendering being used when clear is used
This batch->cleared value is only used to decide to use sysmem rendering or not, so it should include any buffers that are affected by a clear. This is required because the a2xx fast clear doesn't work with sysmem rendering. The a22x "normal" clear path doesn't work with sysmem either. Signed-off-by: Jonathan Marek <jonathan@marek.ca>
This commit is contained in:
committed by
Rob Clark
parent
c93d77431f
commit
31a1348a66
@@ -410,7 +410,7 @@ fd_clear(struct pipe_context *pctx, unsigned buffers,
|
||||
* the depth buffer, etc)
|
||||
*/
|
||||
cleared_buffers = buffers & (FD_BUFFER_ALL & ~batch->restore);
|
||||
batch->cleared |= cleared_buffers;
|
||||
batch->cleared |= buffers;
|
||||
batch->invalidated |= cleared_buffers;
|
||||
|
||||
batch->resolve |= buffers;
|
||||
|
||||
Reference in New Issue
Block a user