nvk: Add a _pad field to nvk_cbuf

We use nvk_cbuf as a key in a hash table in nvk_nir_lower_descriptors()
so we want to make sure it always gets fully initialized.

Fixes: f1c909edd5 ("nvk/nir: Add cbuf analysis to nvi_nir_lower_descriptors()")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10956
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28564>
This commit is contained in:
Faith Ekstrand 2024-04-03 19:51:21 -05:00 committed by Marge Bot
parent cfa955ed78
commit f30ce26569
1 changed files with 2 additions and 0 deletions

View File

@ -50,8 +50,10 @@ struct nvk_cbuf {
enum nvk_cbuf_type type;
uint8_t desc_set;
uint8_t dynamic_idx;
uint8_t _pad;
uint32_t desc_offset;
};
static_assert(sizeof(struct nvk_cbuf) == 8, "This struct has no holes");
struct nvk_cbuf_map {
uint32_t cbuf_count;