mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-18 07:21:31 +00:00
[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:
parent
ab5f28f743
commit
a238eac75b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue