From: Samuel Pitoiset Date: Tue, 12 Sep 2023 13:32:41 +0000 (+0200) Subject: radv: enable cache counters for RGP on GFX11 X-Git-Tag: upstream/23.3.3~1682 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=219a14d093361f2a305b9377853dcc8f51b1e24c;p=platform%2Fupstream%2Fmesa.git 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: --- 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;