zink: Make sure to initialize all the fields of VkMemoryBarrier

Fixes several random validation errors as the value of dstAccessMask could be
anything.

Cc: mesa-stable
Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28166>
This commit is contained in:
Corentin Noël 2024-03-14 10:04:21 +01:00 committed by Marge Bot
parent 2aab8e0806
commit e7de9ab62a

View file

@ -375,6 +375,7 @@ struct emit_memory_barrier {
} else {
bmb.srcAccessMask = res->obj->access;
}
bmb.dstAccessMask = flags;
VKCTX(CmdPipelineBarrier)(
cmdbuf,
stages,