zink: initialize pQueueFamilyIndices

This silences a Coverity warning about an uninitialized variable.

CID: 1490800

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12559>
This commit is contained in:
Erik Faye-Lund 2021-08-25 21:38:17 +02:00 committed by Marge Bot
parent 64c558ab83
commit c96afa9fc8

View File

@ -125,6 +125,7 @@ create_bci(struct zink_screen *screen, const struct pipe_resource *templ, unsign
bci.pNext = NULL;
bci.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
bci.queueFamilyIndexCount = 0;
bci.pQueueFamilyIndices = NULL;
bci.size = templ->width0;
bci.flags = 0;
assert(bci.size > 0);