Module: Mesa
Branch: main
Commit: 7d0ae38ef75c10b548fb2def88c191a353e180b6
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7d0ae38ef75c10b548fb2def88c191a353e180b6

Author: Giancarlo Devich <gdev...@microsoft.com>
Date:   Wed Oct 11 13:52:04 2023 -0700

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 <jenat...@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25691>

---

 src/compiler/nir/nir_lower_io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compiler/nir/nir_lower_io.c b/src/compiler/nir/nir_lower_io.c
index d2bca8ad7d3..6d5c275a636 100644
--- a/src/compiler/nir/nir_lower_io.c
+++ b/src/compiler/nir/nir_lower_io.c
@@ -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);

Reply via email to