freedreno: Swap needs_ubwc_clear when shadowing.
authorEmma Anholt <emma@anholt.net>
Tue, 22 Jun 2021 22:10:12 +0000 (15:10 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 30 Jun 2021 21:39:11 +0000 (21:39 +0000)
commit88161ced8d092e6e654d3c45466f132b0142f0fd
tree3c7ae745f7b8d0c857d6a4cce19298ab733d6f58
parented1f1dea285eef9712bb717f71c50b665f2619a5
freedreno: Swap needs_ubwc_clear when shadowing.

The destination of the upcoming blit (the old rsc struct that houses the
fresh BO) wouldn't have its ubwc cleared first, which if it got
unfortunate data in a recycled BO could lead to blit failures.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11544>
src/gallium/drivers/freedreno/freedreno_resource.c