radv/winsys: improve error messages when the buffer list creation failed
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 22 Nov 2017 19:13:26 +0000 (20:13 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 24 Nov 2017 10:18:43 +0000 (11:18 +0100)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c

index 67dc4a8cccbe166c48304851d1687983753cda56..e5ea312aeebc68656cb4e768a46b403e91efd6b3 100644 (file)
@@ -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;
                }