Module: Mesa
Branch: main
Commit: 3a19c36618f8b9e54a5beef793a2727f1358b3ec
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3a19c36618f8b9e54a5beef793a2727f1358b3ec

Author: Samuel Pitoiset <[email protected]>
Date:   Wed Apr 26 14:28:19 2023 +0200

radv: do not abort when the SQTT buffer resize failed

This seems to much. While we are at it, update the error msg.

Signed-off-by: Samuel Pitoiset <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22732>

---

 src/amd/vulkan/radv_sqtt.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/amd/vulkan/radv_sqtt.c b/src/amd/vulkan/radv_sqtt.c
index 03eaa3b1a52..208e8a2ad84 100644
--- a/src/amd/vulkan/radv_sqtt.c
+++ b/src/amd/vulkan/radv_sqtt.c
@@ -812,11 +812,8 @@ radv_get_thread_trace(struct radv_queue *queue, struct 
ac_thread_trace *thread_t
    struct radeon_info *rad_info = &device->physical_device->rad_info;
 
    if (!ac_sqtt_get_trace(&device->thread_trace, rad_info, thread_trace)) {
-      if (!radv_thread_trace_resize_bo(device)) {
-         fprintf(stderr, "Failed to resize the thread trace buffer.\n");
-         abort();
-      }
-
+      if (!radv_thread_trace_resize_bo(device))
+         fprintf(stderr, "radv: Failed to resize the SQTT buffer.\n");
       return false;
    }
 

Reply via email to