Module: Mesa
Branch: main
Commit: db0f177edd793f30edee44c101bfdc7f9ea6e788
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=db0f177edd793f30edee44c101bfdc7f9ea6e788

Author: Mary Guillemard <mary.guillem...@collabora.com>
Date:   Tue Nov 21 09:17:16 2023 +0100

zink: Initialize pQueueFamilyIndices for image query / create

Fixes: d922850e365 ("zink: break out image/buffer create info structs into 
helper funcs")

Signed-off-by: Mary Guillemard <mary.guillem...@collabora.com>
Reviewed-by: Mike Blumenkrantz <michael.blumenkra...@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26303>

---

 src/gallium/drivers/zink/zink_resource.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/zink/zink_resource.c 
b/src/gallium/drivers/zink/zink_resource.c
index e4d7e4ab9ad..2dad2b2d252 100644
--- a/src/gallium/drivers/zink/zink_resource.c
+++ b/src/gallium/drivers/zink/zink_resource.c
@@ -359,6 +359,7 @@ check_ici(struct zink_screen *screen, VkImageCreateInfo 
*ici, uint64_t modifier)
          mod_info.drmFormatModifier = modifier;
          mod_info.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
          mod_info.queueFamilyIndexCount = 0;
+         mod_info.pQueueFamilyIndices = NULL;
          info.pNext = &mod_info;
       }
 
@@ -697,6 +698,7 @@ init_ici(struct zink_screen *screen, VkImageCreateInfo 
*ici, const struct pipe_r
       ici->flags |= VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT;
    ici->usage = 0;
    ici->queueFamilyIndexCount = 0;
+   ici->pQueueFamilyIndices = NULL;
 
    /* assume we're going to be doing some CompressedTexSubImage */
    if (util_format_is_compressed(templ->format) && (ici->flags & 
VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT) &&

Reply via email to