radv/winsys: fix creating the BO list for virtual buffers
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 17 Aug 2018 12:45:39 +0000 (14:45 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 17 Aug 2018 13:00:21 +0000 (15:00 +0200)
commitd27e1584ce30b2186ac933f976dc31c3624b385b
tree30a260ee42e22fdf58e7f0f7a2d1d8cfd3e7088d
parentde3b34df97326b793fac2152eedbd25a0c2d0812
radv/winsys: fix creating the BO list for virtual buffers

When the number of unique BO is 0, we optimize the list creation
by copying all buffers of the current CS directly into it. But
this is only valid if the CS doesn't have virtual buffers,
otherwise they are not added and hw might report VM faults.

This fixes VM faults with:
dEQP-VK.sparse_resources.image_sparse_binding.2d.rgba8ui.1024_128_1

CC: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c