radv/aco: Always enable subgroup shuffle.
authorTimur Kristóf <timur.kristof@gmail.com>
Tue, 26 May 2020 23:31:35 +0000 (01:31 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 2 Jun 2020 21:12:13 +0000 (21:12 +0000)
It is now supported by both backends on all hw.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5223>

src/amd/vulkan/radv_device.c

index 37ba40707e7a7659a4f96b86261ef392323d19fb..27ff12b5c2cd5a321d21c78c7a90bf6655ab7322 100644 (file)
@@ -1525,14 +1525,9 @@ radv_get_physical_device_properties_1_1(struct radv_physical_device *pdevice,
                                         VK_SUBGROUP_FEATURE_ARITHMETIC_BIT |
                                         VK_SUBGROUP_FEATURE_BALLOT_BIT |
                                         VK_SUBGROUP_FEATURE_CLUSTERED_BIT |
-                                        VK_SUBGROUP_FEATURE_QUAD_BIT;
-
-       if (((pdevice->rad_info.chip_class == GFX6 ||
-             pdevice->rad_info.chip_class == GFX7) && !pdevice->use_aco) ||
-           pdevice->rad_info.chip_class >= GFX8) {
-               p->subgroupSupportedOperations |= VK_SUBGROUP_FEATURE_SHUFFLE_BIT |
-                                                 VK_SUBGROUP_FEATURE_SHUFFLE_RELATIVE_BIT;
-       }
+                                        VK_SUBGROUP_FEATURE_QUAD_BIT |
+                                        VK_SUBGROUP_FEATURE_SHUFFLE_BIT |
+                                        VK_SUBGROUP_FEATURE_SHUFFLE_RELATIVE_BIT;
        p->subgroupQuadOperationsInAllStages = true;
 
        p->pointClippingBehavior = VK_POINT_CLIPPING_BEHAVIOR_ALL_CLIP_PLANES;