radv: do not abort when the SQTT buffer resize failed
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 26 Apr 2023 12:28:19 +0000 (14:28 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 28 Apr 2023 16:55:12 +0000 (16:55 +0000)
This seems to much. While we are at it, update the error msg.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22732>

src/amd/vulkan/radv_sqtt.c

index 03eaa3b..208e8a2 100644 (file)
@@ -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;
    }