Skip to content

ir3: Ban conversions with mismatching sizes

Connor Abbott requested to merge cwabbott0/mesa:ir3-conv-fix into main

What does this MR do and why?

ir3: Ban conversions with mismatching sizes

This prevents folding something like this:

add.u hrA, hrB, hrC
mov.u8u32 rD, hrA

When I wrote this I assumed that because the conversion source and ALU
destination were the same register that meant the types must have the
same size, but that's not the case with u8 which is an 8-bit type in a
16-bit register, so this could've been broken with 8-bit types.

Fixes: f58e1ef7ec5 ("tu: enable shaderInt8 support")

Merge request reports

Loading