anv: Fix subgroupSupportedStages physical property

Use the proper Vulkan values that can be combined into a bitmask.

Fixes: f40a08d25c ("anv: Don't advertise unsupported shader stages")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14761>
This commit is contained in:
Caio Oliveira 2022-01-28 00:57:03 -08:00
parent 89f376b506
commit d6c31f05a2

View file

@ -1960,12 +1960,12 @@ anv_get_physical_device_properties_1_1(struct anv_physical_device *pdevice,
scalar_stages |= mesa_to_vk_shader_stage(stage);
}
if (pdevice->vk.supported_extensions.KHR_ray_tracing_pipeline) {
scalar_stages |= MESA_SHADER_RAYGEN |
MESA_SHADER_ANY_HIT |
MESA_SHADER_CLOSEST_HIT |
MESA_SHADER_MISS |
MESA_SHADER_INTERSECTION |
MESA_SHADER_CALLABLE;
scalar_stages |= VK_SHADER_STAGE_RAYGEN_BIT_KHR |
VK_SHADER_STAGE_ANY_HIT_BIT_KHR |
VK_SHADER_STAGE_CLOSEST_HIT_BIT_KHR |
VK_SHADER_STAGE_MISS_BIT_KHR |
VK_SHADER_STAGE_INTERSECTION_BIT_KHR |
VK_SHADER_STAGE_CALLABLE_BIT_KHR;
}
p->subgroupSupportedStages = scalar_stages;
p->subgroupSupportedOperations = VK_SUBGROUP_FEATURE_BASIC_BIT |