Commit 1cfc9068 authored by Eric Engestrom's avatar Eric Engestrom Committed by Dylan Baker

ttn: fix 64-bit shift on 32-bit `1`

Fixes: 4d0b2c7a ("ttn: Update shader->info as we generate code.")
Signed-off-by: Eric Engestrom's avatarEric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Tapani Pälli's avatarTapani Pälli <tapani.palli@intel.com>
Reviewed-by: Eric Anholt's avatarEric Anholt <eric@anholt.net>
Reviewed-by: Rob Clark's avatarRob Clark <robdclark@gmail.com>
(cherry picked from commit 3afe9d79)
parent 0a83226d
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment