mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 06:40:11 +01:00
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>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25192>
This commit is contained in:
parent
147c17c28c
commit
f1bc58cb7b
1 changed files with 2 additions and 2 deletions
|
|
@ -918,7 +918,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 ||
|
||||
|
|
@ -1040,7 +1040,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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue