From: Samuel Pitoiset Date: Wed, 13 Feb 2019 17:51:23 +0000 (+0100) Subject: radv/winsys: fix BO list creation when RADV_DEBUG=allbos is set X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e18000d1b070ecf627138b7bff47ff8fef81576;p=mesa.git radv/winsys: fix BO list creation when RADV_DEBUG=allbos is set Fixes: 50fd253bd6e ("radv/winsys: Add priority handling during submit.") Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c index 438ed594ede..49a86a72c31 100644 --- a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c +++ b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c @@ -665,6 +665,7 @@ static int radv_amdgpu_create_bo_list(struct radv_amdgpu_winsys *ws, assert(num < ws->num_buffers); handles[num].bo_handle = bo->bo_handle; handles[num].bo_priority = bo->priority; + num++; } r = amdgpu_bo_list_create_raw(ws->dev, ws->num_buffers,