radv/amdgpu: do not add "global" BO to the virtual BO list
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 16 Jun 2022 15:20:14 +0000 (17:20 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 20 Jun 2022 06:43:53 +0000 (06:43 +0000)
commit6dd2699e9f9cfb482349afc582470a4f9709c5f7
treea8598455bf17b1885b1be4a6af6143cb8ac7eabe
parentb4cc10b3427bdf1f172094f991c38c6ec94bbc19
radv/amdgpu: do not add "global" BO to the virtual BO list

To avoid dangling BO references if it's destroyed without being
previously unbound. This is under Vulkan spec clarification but it
looks like the "global" BO fix is simple enough to workaround the
issue for now.

This fixes a CPU hang with Halo Infinite because the kernel rejects
a submission (invalid BO handle found).

Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17085>
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c