radv: Advertise subgroup ops for rt stages
authorKonstantin Seurer <konstantin.seurer@gmail.com>
Sun, 21 Aug 2022 11:54:14 +0000 (13:54 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 24 Aug 2022 13:05:38 +0000 (13:05 +0000)
Closes: #7098
Signed-off-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18169>

src/amd/vulkan/radv_device.c

index 6720ac1..a311e65 100644 (file)
@@ -2069,6 +2069,8 @@ radv_get_physical_device_properties_1_1(struct radv_physical_device *pdevice,
 
    p->subgroupSize = RADV_SUBGROUP_SIZE;
    p->subgroupSupportedStages = VK_SHADER_STAGE_ALL_GRAPHICS | VK_SHADER_STAGE_COMPUTE_BIT;
+   if (radv_enable_rt(pdevice, true))
+      p->subgroupSupportedStages |= RADV_RT_STAGE_BITS;
    p->subgroupSupportedOperations =
       VK_SUBGROUP_FEATURE_BASIC_BIT | VK_SUBGROUP_FEATURE_VOTE_BIT |
       VK_SUBGROUP_FEATURE_ARITHMETIC_BIT | VK_SUBGROUP_FEATURE_BALLOT_BIT |