winsys/amdgpu: disallow pb_cache for backing buffers of sparse buffers
authorMarek Olšák <marek.olsak@amd.com>
Sat, 6 Feb 2021 05:32:31 +0000 (00:32 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 13 Feb 2021 04:39:11 +0000 (23:39 -0500)
commit8481a3414f690a57252097370a2f722ceb395a70
tree8b8f35df7257be17cf85db040d69f870cd451d0c
parenta36d5bf11b51717c04cca13dc6a215e54d3a20ac
winsys/amdgpu: disallow pb_cache for backing buffers of sparse buffers

because amdgpu_bo_wait doesn't wait for active CS jobs using the buffers.
This fixes incorrect buffer reuse of busy buffers.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8895>
src/gallium/winsys/amdgpu/drm/amdgpu_bo.c