intel/fs: use ffsll so we don't explode on 32 bits

Fixes: b200e5765c ("anv: use a simpler MUE layout for fast linked libraries")

Tested-by: Mark Janes <markjanes@swizzler.org>
(cherry picked from commit f1bc58cb7b)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25188>
This commit is contained in:
Iván Briano 2023-09-12 14:40:36 -07:00 committed by Dylan Baker
parent e3ce501d01
commit 9a012e05dc

View file

@ -927,7 +927,7 @@ brw_compute_mue_map(const struct brw_compiler *compiler,
uint64_t per_prim_outputs = outputs_written & nir->info.per_primitive_outputs;
while (per_prim_outputs) {
uint64_t location = ffsl(per_prim_outputs) - 1;
uint64_t location = ffsll(per_prim_outputs) - 1;
assert(map->start_dw[location] == -1);
assert(location == VARYING_SLOT_PRIMITIVE_ID ||
@ -1049,7 +1049,7 @@ brw_compute_mue_map(const struct brw_compiler *compiler,
uint64_t per_vertex_outputs = outputs_written & ~nir->info.per_primitive_outputs;
while (per_vertex_outputs) {
uint64_t location = ffsl(per_vertex_outputs) - 1;
uint64_t location = ffsll(per_vertex_outputs) - 1;
assert(map->start_dw[location] == -1);
assert(location >= VARYING_SLOT_VAR0);