radv: enable cache counters for RGP on GFX11
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 12 Sep 2023 13:32:41 +0000 (15:32 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 25 Sep 2023 07:05:58 +0000 (09:05 +0200)
This was the last missing RGP feature on GFX11 compared to older chips.

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

src/amd/vulkan/radv_device.c

index d4f13f0..947bb03 100644 (file)
@@ -989,9 +989,7 @@ radv_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCr
               radv_spm_trace_enabled(device->instance) ? "enabled" : "disabled");
 
       if (radv_spm_trace_enabled(device->instance)) {
-         /* TODO: add SPM counters for GFX11. */
-         if (device->physical_device->rad_info.gfx_level == GFX10 ||
-             device->physical_device->rad_info.gfx_level == GFX10_3) {
+         if (device->physical_device->rad_info.gfx_level >= GFX10) {
             if (!radv_spm_init(device)) {
                result = VK_ERROR_INITIALIZATION_FAILED;
                goto fail;