radv: adjust the supported subgroup stages
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 22 Apr 2020 13:26:17 +0000 (15:26 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Apr 2020 16:16:09 +0000 (16:16 +0000)
VK_SHADER_STAGE_ALL now includes all ray-tracing related stages.
Noticed while comparing vulkaninfo with some other drivers.

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/4679>

src/amd/vulkan/radv_device.c

index 4bfcbb1c0babed66dcddfec0f97a5a1e0ed0f5e6..730d1a67747e1ab0508ef7fb67dab43782a80fc0 100644 (file)
@@ -1469,7 +1469,8 @@ radv_get_physical_device_properties_1_1(struct radv_physical_device *pdevice,
        p->deviceNodeMask = 0;
 
        p->subgroupSize = RADV_SUBGROUP_SIZE;
-       p->subgroupSupportedStages = VK_SHADER_STAGE_ALL;
+       p->subgroupSupportedStages = VK_SHADER_STAGE_ALL_GRAPHICS |
+                                    VK_SHADER_STAGE_COMPUTE_BIT;
        p->subgroupSupportedOperations = VK_SUBGROUP_FEATURE_BASIC_BIT |
                                         VK_SUBGROUP_FEATURE_VOTE_BIT |
                                         VK_SUBGROUP_FEATURE_ARITHMETIC_BIT |