radv: remove useless assertions in the SQTT path
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 3 Mar 2021 08:35:18 +0000 (09:35 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 21 Sep 2021 07:08:48 +0000 (09:08 +0200)
The driver aborts when the chip class is older than GFX8.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12854>

src/amd/vulkan/radv_sqtt.c

index 04a67af..91aef6f 100644 (file)
@@ -65,8 +65,6 @@ radv_emit_thread_trace_start(struct radv_device *device, struct radeon_cmdbuf *c
    struct radeon_info *rad_info = &device->physical_device->rad_info;
    unsigned max_se = rad_info->max_se;
 
-   assert(device->physical_device->rad_info.chip_class >= GFX8);
-
    for (unsigned se = 0; se < max_se; se++) {
       uint64_t va = radv_buffer_get_va(device->thread_trace.bo);
       uint64_t data_va = ac_thread_trace_get_data_va(rad_info, &device->thread_trace, va, se);
@@ -243,8 +241,6 @@ radv_emit_thread_trace_stop(struct radv_device *device, struct radeon_cmdbuf *cs
 {
    unsigned max_se = device->physical_device->rad_info.max_se;
 
-   assert(device->physical_device->rad_info.chip_class >= GFX8);
-
    /* Stop the thread trace with a different event based on the queue. */
    if (queue_family_index == RADV_QUEUE_COMPUTE &&
        device->physical_device->rad_info.chip_class >= GFX7) {