ac/nir: ignore 8/16-bit global access offset
This was found by inspection, I'm not sure it can even happen. No fossil-db changes. Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26402>
This commit is contained in:
parent
bbb12dbbf9
commit
10ba06960f
1 changed files with 3 additions and 0 deletions
|
|
@ -25,6 +25,9 @@ try_extract_additions(nir_builder *b, nir_scalar scalar, uint64_t *out_const,
|
|||
*out_const += nir_scalar_as_uint(src);
|
||||
} else if (nir_scalar_is_alu(src) && nir_scalar_alu_op(src) == nir_op_u2u64) {
|
||||
nir_scalar offset_scalar = nir_scalar_chase_alu_src(src, 0);
|
||||
if (offset_scalar.def->bit_size != 32)
|
||||
continue;
|
||||
|
||||
nir_def *offset = nir_channel(b, offset_scalar.def, offset_scalar.comp);
|
||||
if (*out_offset)
|
||||
*out_offset = nir_iadd(b, *out_offset, offset);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue