[vulkan] Ensure the barriers array is initialized

I'm not sure what's up, but arm gcc thinks the array isn't properly
initialized even though x86_64 gcc does. Maybe something with padding.
At least c23 makes it easy to 0-initialize VLAs.
This commit is contained in:
Bill Currie 2023-08-17 12:52:30 +09:00
parent ab5f28f743
commit a238eac75b
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ QFV_PacketScatterBuffer (qfv_packet_t *packet, VkBuffer dstBuffer,
qfv_devfuncs_t *dfunc = packet->stage->device->funcs;
qfv_bufferbarrier_t bb = bufferBarriers[qfv_BB_Unknown_to_TransferWrite];
VkBufferCopy copy_regions[count];
VkBufferMemoryBarrier barriers[count];
VkBufferMemoryBarrier barriers[count] = {};//FIXME arm gcc sees as uninit
for (uint32_t i = 0; i < count; i++) {
barriers[i] = bb.barrier;
barriers[i].buffer = dstBuffer;