From: Eric Engestrom Date: Mon, 26 Aug 2019 14:52:33 +0000 (+0100) Subject: ttn: fix 64-bit shift on 32-bit `1` X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3afe9d798aacc0abc6d898dda3360f06517caf8e;p=mesa.git ttn: fix 64-bit shift on 32-bit `1` Fixes: 4d0b2c7aaac3cf3de5af ("ttn: Update shader->info as we generate code.") Signed-off-by: Eric Engestrom Reviewed-by: Tapani Pälli Reviewed-by: Eric Anholt Reviewed-by: Rob Clark --- diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.c b/src/gallium/auxiliary/nir/tgsi_to_nir.c index a80f066b7b2..20d6c0bfb29 100644 --- a/src/gallium/auxiliary/nir/tgsi_to_nir.c +++ b/src/gallium/auxiliary/nir/tgsi_to_nir.c @@ -662,7 +662,7 @@ ttn_src_for_file_and_index(struct ttn_compile *c, unsigned file, unsigned index, src = nir_src_for_ssa(load); b->shader->info.system_values_read |= - (1 << nir_system_value_from_intrinsic(op)); + (1ull << nir_system_value_from_intrinsic(op)); break; }