mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-11 06:28:09 +02:00
anv: report formats supported by the common bvh framework
Enables DXR 1.1 with vkd3d-proton Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Sagar Ghuge<sagar.ghuge@intel.com> Reviewed-by: Kevin Chuang <kaiwenjon23@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32487>
This commit is contained in:
parent
aba90c1523
commit
80c0d2718c
1 changed files with 5 additions and 0 deletions
|
|
@ -919,6 +919,7 @@ get_buffer_format_features2(const struct intel_device_info *devinfo,
|
|||
flags |= VK_FORMAT_FEATURE_2_STORAGE_WRITE_WITHOUT_FORMAT_BIT;
|
||||
|
||||
if (devinfo->has_ray_tracing) {
|
||||
#if ANV_SUPPORT_RT_GRL
|
||||
switch (vk_format) {
|
||||
case VK_FORMAT_R32G32_SFLOAT:
|
||||
case VK_FORMAT_R32G32B32_SFLOAT:
|
||||
|
|
@ -937,6 +938,10 @@ get_buffer_format_features2(const struct intel_device_info *devinfo,
|
|||
default:
|
||||
break;
|
||||
}
|
||||
#else
|
||||
if (vk_acceleration_struct_vtx_format_supported(vk_format))
|
||||
flags |= VK_FORMAT_FEATURE_ACCELERATION_STRUCTURE_VERTEX_BUFFER_BIT_KHR;
|
||||
#endif
|
||||
}
|
||||
|
||||
return flags;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue