mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-19 11:28:15 +02:00
nir/instr_set: Fix multi-slot intrinsic index equality
nir_intrinsic_index_size() expects a nir_intrinsic_index_flag, not
the position in the intrinsic's index list. This could cause
part of a multi-slot index to be ignored.
Fixes: b2bc57551a ("nir/instr_set: allow cse with fp_math_ctrl mismatches for intrinsics")
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41593>
This commit is contained in:
parent
84645c9d8f
commit
0281eb2e98
1 changed files with 1 additions and 1 deletions
|
|
@ -763,7 +763,7 @@ nir_instrs_equal(const nir_instr *instr1, const nir_instr *instr2)
|
|||
if (memcmp(&sem1, &sem2, sizeof(sem1)))
|
||||
return false;
|
||||
} else {
|
||||
unsigned size = nir_intrinsic_index_size(i);
|
||||
unsigned size = nir_intrinsic_index_size(index);
|
||||
unsigned offset = info->index_map[index] - 1;
|
||||
|
||||
if (memcmp(&intrinsic1->const_index[offset],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue