ttn: fix 64-bit shift on 32-bit `1`
authorEric Engestrom <eric.engestrom@intel.com>
Mon, 26 Aug 2019 14:52:33 +0000 (15:52 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Tue, 3 Sep 2019 23:01:08 +0000 (00:01 +0100)
Fixes: 4d0b2c7aaac3cf3de5af ("ttn: Update shader->info as we generate code.")
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/gallium/auxiliary/nir/tgsi_to_nir.c

index a80f066b7b22e99a8edda249bf24f793d3f3837f..20d6c0bfb29a3e49f7e51b44944a1e56f57f1866 100644 (file)
@@ -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;
    }