From 219a14d093361f2a305b9377853dcc8f51b1e24c Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 12 Sep 2023 15:32:41 +0200 Subject: [PATCH] radv: enable cache counters for RGP on GFX11 This was the last missing RGP feature on GFX11 compared to older chips. Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_device.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index d4f13f0..947bb03 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -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; -- 2.7.4