mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
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:
parent
9aad6f005d
commit
5b6ad73ac7
2 changed files with 3 additions and 3 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue