mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
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>
(cherry picked from commit d27e1584ce)
This commit is contained in:
parent
b33a2fa911
commit
fe63541a70
1 changed files with 1 additions and 1 deletions
|
|
@ -692,7 +692,7 @@ static int radv_amdgpu_create_bo_list(struct radv_amdgpu_winsys *ws,
|
|||
if (!cs->num_buffers)
|
||||
continue;
|
||||
|
||||
if (unique_bo_count == 0) {
|
||||
if (unique_bo_count == 0 && !cs->num_virtual_buffers) {
|
||||
memcpy(handles, cs->handles, cs->num_buffers * sizeof(amdgpu_bo_handle));
|
||||
memcpy(priorities, cs->priorities, cs->num_buffers * sizeof(uint8_t));
|
||||
unique_bo_count = cs->num_buffers;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue