Mesa (master): gallium/radeon/winsyses: print CS submission error number
Marek Olšák
mareko at kemper.freedesktop.org
Sat Aug 6 12:27:34 UTC 2016
Module: Mesa
Branch: master
Commit: 1c8f17599efe76239bc1cffef5db42e67cf4c900
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1c8f17599efe76239bc1cffef5db42e67cf4c900
Author: Marek Olšák <marek.olsak at amd.com>
Date: Fri Jul 29 18:31:33 2016 +0200
gallium/radeon/winsyses: print CS submission error number
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
---
src/gallium/winsys/amdgpu/drm/amdgpu_cs.c | 2 +-
src/gallium/winsys/radeon/drm/radeon_drm_cs.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
index fb517b9..35e1b48 100644
--- a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
+++ b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
@@ -935,7 +935,7 @@ void amdgpu_cs_submit_ib(void *job, int thread_index)
fprintf(stderr, "amdgpu: Not enough memory for command submission.\n");
else
fprintf(stderr, "amdgpu: The CS has been rejected, "
- "see dmesg for more information.\n");
+ "see dmesg for more information (%i).\n", r);
amdgpu_fence_signalled(cs->fence);
} else {
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_cs.c b/src/gallium/winsys/radeon/drm/radeon_drm_cs.c
index 606c38d..4a6f005 100644
--- a/src/gallium/winsys/radeon/drm/radeon_drm_cs.c
+++ b/src/gallium/winsys/radeon/drm/radeon_drm_cs.c
@@ -447,7 +447,7 @@ void radeon_drm_cs_emit_ioctl_oneshot(void *job, int thread_index)
}
} else {
fprintf(stderr, "radeon: The kernel rejected CS, "
- "see dmesg for more information.\n");
+ "see dmesg for more information (%i).\n", r);
}
}
More information about the mesa-commit
mailing list