nir: Workaround MSVC internal compiler error in ARM64 build

Changes a variable type from `nir_component_mask_t` to `uint32_t`. The
variable's name suggests it may have been meant to be a 32-bit integer
anyway.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25691>
This commit is contained in:
Giancarlo Devich 2023-10-11 13:52:04 -07:00 committed by Marge Bot
parent 97553affc6
commit 7d0ae38ef7

View file

@ -519,7 +519,7 @@ lower_store(nir_intrinsic_instr *intrin, struct lower_io_state *state,
BITFIELD_RANGE(src_comp, num_comps));
nir_def *data32 = nir_bitcast_vector(b, data, 32);
nir_component_mask_t write_mask32 = 0;
uint32_t write_mask32 = 0;
for (unsigned i = 0; i < num_comps; i++) {
if (write_mask & BITFIELD_MASK(num_comps) & (1 << i))
write_mask32 |= 3 << (i * 2);