From 5bc18b79a4625ae39f1d44e8139017834a53736c Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 20 May 2020 10:02:49 +0200 Subject: [PATCH] radv: advertise shaderDeviceClock on GFX8+ Unsupported on GFX6-GFX7. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 482c104f2db..cf41a03b254 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -1250,7 +1250,7 @@ void radv_GetPhysicalDeviceFeatures2( VkPhysicalDeviceShaderClockFeaturesKHR *features = (VkPhysicalDeviceShaderClockFeaturesKHR *)ext; features->shaderSubgroupClock = true; - features->shaderDeviceClock = false; + features->shaderDeviceClock = pdevice->rad_info.chip_class >= GFX8; break; } case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TEXEL_BUFFER_ALIGNMENT_FEATURES_EXT: { -- 2.30.2