mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-20 13:10:24 +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> (cherry picked from commitf1bc58cb7b) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25188>
This commit is contained in:
parent
e3ce501d01
commit
9a012e05dc
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue