venus: fix maint7 layered vk props query

We should not touch the pNext of the nested props2 struct.

Fixes: 8c6a5250ec ("venus: support VK_KHR_maintenance7")
Reviewed-by: Corentin Noël <corentin.noel@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35453>
This commit is contained in:
Yiwei Zhang 2025-06-11 00:37:19 -07:00 committed by Marge Bot
parent 6781dcc565
commit d6bff136bd

View file

@ -2059,8 +2059,9 @@ vn_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice,
if (!layered_vk_props)
return;
VN_COPY_STRUCT_GUTS(layered_vk_props, &layered_props->vk,
sizeof(layered_props->vk));
VN_COPY_STRUCT_GUTS(&layered_vk_props->properties,
&layered_props->vk.properties,
sizeof(layered_props->vk.properties));
vk_foreach_struct(layered_vk_pnext, layered_vk_props->properties.pNext) {
switch (layered_vk_pnext->sType) {
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIES: