radv/winsys: fix BO list creation when RADV_DEBUG=allbos is set
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 13 Feb 2019 17:51:23 +0000 (18:51 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 13 Feb 2019 19:51:40 +0000 (20:51 +0100)
Fixes: 50fd253bd6e ("radv/winsys: Add priority handling during submit.")
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

index 438ed594edef1338dc2330f9a819171dec13d269..49a86a72c31cb42ff34db39b60820ad5b96100cb 100644 (file)
@@ -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,