radv: advertise shaderDeviceClock on GFX8+
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 20 May 2020 08:02:49 +0000 (10:02 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sun, 24 May 2020 18:37:59 +0000 (20:37 +0200)
Unsupported on GFX6-GFX7.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5117>

src/amd/vulkan/radv_device.c

index 482c104f2dbee3d2302618cb2de453d64f5f70ff..cf41a03b254841a9782089546d8afa0ab1c5f11e 100644 (file)
@@ -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: {