mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
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:
parent
6781dcc565
commit
d6bff136bd
1 changed files with 3 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue