mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
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> (cherry picked from commitd6c31f05a2)
This commit is contained in:
parent
d08330e731
commit
e3956c3d5c
2 changed files with 7 additions and 7 deletions
|
|
@ -3919,7 +3919,7 @@
|
|||
"description": "anv: Fix subgroupSupportedStages physical property",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "f40a08d25c91256cd3dff0211b8e10d5bbb3734e"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1973,12 +1973,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 |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue