radv: disable subgroup shuffle operations on GFX10
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 21 Nov 2019 10:27:55 +0000 (11:27 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 25 Nov 2019 07:03:24 +0000 (08:03 +0100)
They are broken like on GFX6-GFX7. It seems better to disable them
instead of enabling a broken feature.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_device.c

index a0f7267e199c7aef2c680a79b70300ffa0b330e7..a7997cf9c209c3ba8dc3dfb6245eedf6c38aa83f 100644 (file)
@@ -1394,7 +1394,8 @@ void radv_GetPhysicalDeviceProperties2(
                                                        VK_SUBGROUP_FEATURE_BALLOT_BIT |
                                                        VK_SUBGROUP_FEATURE_CLUSTERED_BIT |
                                                        VK_SUBGROUP_FEATURE_QUAD_BIT;
-                       if (pdevice->rad_info.chip_class >= GFX8) {
+                       if (pdevice->rad_info.chip_class == GFX8 ||
+                           pdevice->rad_info.chip_class == GFX9) {
                                properties->supportedOperations |=
                                                        VK_SUBGROUP_FEATURE_SHUFFLE_BIT |
                                                        VK_SUBGROUP_FEATURE_SHUFFLE_RELATIVE_BIT;