radv: Enable subgroup shuffle on GFX10 when ACO is used.
authorTimur Kristóf <timur.kristof@gmail.com>
Wed, 11 Mar 2020 12:39:46 +0000 (13:39 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 12 Mar 2020 13:34:41 +0000 (13:34 +0000)
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4159>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4159>

src/amd/vulkan/radv_device.c

index 1391456e8df2c44b612e6e5fa4c4cbe13c906901..50c6f14bbcbff0bb32ad1e76cd5abf374e53fd6f 100644 (file)
@@ -1483,7 +1483,8 @@ radv_get_physical_device_properties_1_1(struct radv_physical_device *pdevice,
                                         VK_SUBGROUP_FEATURE_QUAD_BIT;
 
        if (pdevice->rad_info.chip_class == GFX8 ||
-           pdevice->rad_info.chip_class == GFX9) {
+           pdevice->rad_info.chip_class == GFX9 ||
+           (pdevice->rad_info.chip_class == GFX10 && pdevice->use_aco)) {
                p->subgroupSupportedOperations |= VK_SUBGROUP_FEATURE_SHUFFLE_BIT |
                                                  VK_SUBGROUP_FEATURE_SHUFFLE_RELATIVE_BIT;
        }