From dc391a406ab03fb5f2ba6f7042e6216b52e2ceab Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 22 Nov 2017 20:13:26 +0100 Subject: radv/winsys: improve error messages when the buffer list creation failed Signed-off-by: Samuel Pitoiset Reviewed-by: Dave Airlie Reviewed-by: Bas Nieuwenhuizen --- src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c index 67dc4a8cccb..e5ea312aeeb 100644 --- a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c +++ b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c @@ -711,7 +711,8 @@ static int radv_amdgpu_winsys_cs_submit_chained(struct radeon_winsys_ctx *_ctx, r = radv_amdgpu_create_bo_list(cs0->ws, cs_array, cs_count, NULL, initial_preamble_cs, &bo_list); if (r) { - fprintf(stderr, "amdgpu: Failed to created the BO list for submission\n"); + fprintf(stderr, "amdgpu: buffer list creation failed for the " + "chained submission(%d)\n", r); return r; } @@ -778,7 +779,8 @@ static int radv_amdgpu_winsys_cs_submit_fallback(struct radeon_winsys_ctx *_ctx, r = radv_amdgpu_create_bo_list(cs0->ws, &cs_array[i], cnt, NULL, preamble_cs, &bo_list); if (r) { - fprintf(stderr, "amdgpu: Failed to created the BO list for submission\n"); + fprintf(stderr, "amdgpu: buffer list creation failed " + "for the fallback submission (%d)\n", r); return r; } @@ -900,7 +902,8 @@ static int radv_amdgpu_winsys_cs_submit_sysmem(struct radeon_winsys_ctx *_ctx, (struct radv_amdgpu_winsys_bo*)bo, preamble_cs, &bo_list); if (r) { - fprintf(stderr, "amdgpu: Failed to created the BO list for submission\n"); + fprintf(stderr, "amdgpu: buffer list creation failed " + "for the sysmem submission (%d)\n", r); return r; } -- cgit v1.2.3