diff options
author | Jonathan Marek <[email protected]> | 2019-01-23 15:07:31 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2019-01-29 20:22:33 +0000 |
commit | 31a1348a66369a8d664aea6b9e8f5df388e92c16 (patch) | |
tree | 347734f063f79c2635e8d35d727b67d11b6632d2 /src | |
parent | c93d77431f711a39a638c43541635cd95924bc2d (diff) |
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_draw.c b/src/gallium/drivers/freedreno/freedreno_draw.c index c35b0d9f4a1..67038868104 100644 --- a/src/gallium/drivers/freedreno/freedreno_draw.c +++ b/src/gallium/drivers/freedreno/freedreno_draw.c @@ -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; |