From cb54338f65e5beedc3712aaf09629be68706a88a Mon Sep 17 00:00:00 2001 From: Yiwei Zhang Date: Fri, 27 Jun 2025 23:56:46 -0700 Subject: [PATCH] venus: fix msaa state sample location info sanitization The additional reference has corrupted the below D/S state instead of properly ending the msaa state pnext chain. Fixes: ff64092ff34 ("venus: support VK_EXT_sample_locations") Part-of: --- src/virtio/vulkan/vn_pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/virtio/vulkan/vn_pipeline.c b/src/virtio/vulkan/vn_pipeline.c index c9b60bf959c..034a0c1f9aa 100644 --- a/src/virtio/vulkan/vn_pipeline.c +++ b/src/virtio/vulkan/vn_pipeline.c @@ -1408,7 +1408,7 @@ vn_multisample_info_pnext_init( VkPipelineSampleLocationsStateCreateInfoEXT *sl = &fix_tmp->sl_infos[index]; - VkBaseOutStructure *cur = (void *)&fix_tmp->infos[index].pMultisampleState; + VkBaseOutStructure *cur = (void *)fix_tmp->infos[index].pMultisampleState; vk_foreach_struct_const(src, info->pNext) { void *next = NULL;