compiler/types: Fix deserializing structs with >= 15 members
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 4 Sep 2020 19:06:29 +0000 (14:06 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 4 Sep 2020 20:12:12 +0000 (20:12 +0000)
commit11fbd9806dd99d7a18081ca0d09e4db977f8af1b
treed7326ccad256c02f932ecabd347dea9009a43265
parent50ff8a772ae3f8d836f251ab10faabdff3a3c315
compiler/types: Fix deserializing structs with >= 15 members

This was a typo in a0b82c24b6d08c where we used the wrong struct member
to decide whether or not to read the explicit_alignment.

Fixes: a0b82c24b6d08c "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>
src/compiler/glsl_types.cpp