hk: reduce storage desc

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36633>
This commit is contained in:
Alyssa Rosenzweig 2025-08-07 09:42:33 -04:00 committed by Marge Bot
parent 9aad6f005d
commit 5b6ad73ac7
2 changed files with 3 additions and 3 deletions

View file

@ -48,9 +48,8 @@ static_assert(sizeof(struct hk_sampled_image_descriptor) == 64,
struct hk_storage_image_descriptor {
struct agx_texture_packed tex;
struct agx_pbe_packed pbe;
uint8_t pad[16];
};
static_assert(sizeof(struct hk_storage_image_descriptor) == 64,
static_assert(sizeof(struct hk_storage_image_descriptor) == 48,
"hk_storage_image_descriptor has no holes");
/* This has to match nir_address_format_64bit_bounded_global */

View file

@ -45,7 +45,8 @@ hk_descriptor_stride_align_for_type(
case VK_DESCRIPTOR_TYPE_STORAGE_IMAGE:
case VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER:
case VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER:
*stride = *alignment = sizeof(struct hk_storage_image_descriptor);
*stride = sizeof(struct hk_storage_image_descriptor);
*alignment = 8;
break;
case VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER: