radv/sqtt: fix configuring AUTO_FLUSH_MODE on GFX10.3
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 3 May 2022 15:20:24 +0000 (17:20 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 4 May 2022 16:13:49 +0000 (16:13 +0000)
The polarity is inverted. Ported from RadeonSI and PAL.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16303>

src/amd/vulkan/radv_sqtt.c

index 9a89ef6..17fdcea 100644 (file)
@@ -54,6 +54,9 @@ gfx10_get_thread_trace_ctrl(struct radv_device *device, bool enable)
    if (device->physical_device->rad_info.chip_class == GFX10_3)
       thread_trace_ctrl |= S_008D1C_LOWATER_OFFSET(4);
 
+   if (device->physical_device->rad_info.has_sqtt_auto_flush_mode_bug)
+      thread_trace_ctrl |= S_008D1C_AUTO_FLUSH_MODE(1);
+
    return thread_trace_ctrl;
 }