aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan
diff options
context:
space:
mode:
authorTimur Kristóf <[email protected]>2020-03-11 13:39:46 +0100
committerMarge Bot <[email protected]>2020-03-12 13:34:41 +0000
commitcfa299eadb21893348c60906dfde8feb175c7f14 (patch)
tree1c3eb37f6d101496a52c42d4d1f810c0880935cd /src/amd/vulkan
parent967eb2326155eaa7f2f3d3b8c459a2cb82eca1dc (diff)
radv: Enable subgroup shuffle on GFX10 when ACO is used.
Signed-off-by: Timur Kristóf <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4159> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4159>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r--src/amd/vulkan/radv_device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 1391456e8df..50c6f14bbcb 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -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;
}