summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-11-22 20:13:26 +0100
committerSamuel Pitoiset <[email protected]>2017-11-24 11:18:43 +0100
commitdc391a406ab03fb5f2ba6f7042e6216b52e2ceab (patch)
tree05938415c2b986093c9ca9fa8b4627ae2b8f46e6
parent15c0df785b85ccf6cf33f3730dd3b4152b7a49e6 (diff)
radv/winsys: improve error messages when the buffer list creation failed
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Dave Airlie <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r--src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c9
1 files 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;
}