From 772966d412c29614003a73e906c60abc1cfaac57 Mon Sep 17 00:00:00 2001 From: Paulo Zanoni Date: Thu, 2 Apr 2026 11:36:41 -0700 Subject: [PATCH] libcl/vk: add aligned(4) to VkCopyMemoryIndirectCommandKHR This structure, despite containing 8-bit members, can be 4-byte aligned: "VUID-VkCopyMemoryIndirectInfoKHR-copyAddressRange-10942 copyAddressRange.address must be 4 byte aligned" So do it like we do with the other structures. Reviewed-by: Lionel Landwerlin Signed-off-by: Paulo Zanoni --- src/compiler/libcl/libcl_vk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/libcl/libcl_vk.h b/src/compiler/libcl/libcl_vk.h index 6bb96efe30e..e3e8cf62423 100644 --- a/src/compiler/libcl/libcl_vk.h +++ b/src/compiler/libcl/libcl_vk.h @@ -186,4 +186,4 @@ typedef struct VkCopyMemoryIndirectCommandKHR { VkDeviceAddress srcAddress; VkDeviceAddress dstAddress; VkDeviceSize size; -} VkCopyMemoryIndirectCommandKHR; +} VkCopyMemoryIndirectCommandKHR __attribute__((aligned(4)));