compiler/types: Fix deserializing structs with >= 15 members
This was a typo ina0b82c24b6
where we used the wrong struct member to decide whether or not to read the explicit_alignment. Fixes:a0b82c24b6
"nir/glsl: Add an explicit_alignment field to glsl_type" Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3487 Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6605>
This commit is contained in:

committed by
Marge Bot

parent
50ff8a772a
commit
11fbd9806d
@@ -2858,7 +2858,7 @@ encode_type_to_blob(struct blob *blob, const glsl_type *type)
|
||||
/* If we don't have enough bits for length, store it separately. */
|
||||
if (encoded.strct.length == 0xfffff)
|
||||
blob_write_uint32(blob, type->length);
|
||||
if (encoded.strct.length == 0xf)
|
||||
if (encoded.strct.explicit_alignment == 0xf)
|
||||
blob_write_uint32(blob, type->explicit_alignment);
|
||||
|
||||
for (unsigned i = 0; i < type->length; i++)
|
||||
|
Reference in New Issue
Block a user