freedreno: fix sysmem rendering being used when clear is used
authorJonathan Marek <jonathan@marek.ca>
Wed, 23 Jan 2019 20:07:31 +0000 (15:07 -0500)
committerRob Clark <robdclark@gmail.com>
Tue, 29 Jan 2019 20:22:33 +0000 (20:22 +0000)
commit31a1348a66369a8d664aea6b9e8f5df388e92c16
tree347734f063f79c2635e8d35d727b67d11b6632d2
parentc93d77431f711a39a638c43541635cd95924bc2d
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>
src/gallium/drivers/freedreno/freedreno_draw.c