T3 - Operand forms and lane states #334

Open
opened 2026-11-27 21:24:55 +00:00 by brcly · 2 comments
brcly commented 2026-11-27 21:24:55 +00:00 (Migrated from github.com)
Contributor

Imported from brcly/TuxBox. Originally posted by brcly on 2026-11-27T21:24:55Z.


No description provided.

<!-- greyfinch-sync:brcly/TuxBox:issue:6654694061 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/334). Originally posted by [brcly](https://github.com/brcly) on 2026-11-27T21:24:55Z. --- _No description provided._
JeffreyBytes commented 2026-11-28 22:51:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by JeffreyBytes on 2026-11-28T22:51:21Z.


Two things from running check_basic_alu_gpu.py against hardware results (#420), in case they're useful for T3:

v_mac_legacy_f32 doesn't get the legacy multiply. vector.rs strips _legacy and remembers it, but only v_mul_f32 and v_mad_f32 check it, so v_mac_legacy_f32 comes out as a plain a * b + dst. inf × 0x00400000 + 0x3f800001 gives 0xffc00000 instead of 0x3f800001. No recorded shader uses it. I can send the fix if you're not already in there.

On RADV still rounding twice with mad() (#333): the SPIR-V from vkd3d-proton has Fma without NoContraction, which lets the driver split it. precise makes DXC tag the FMad, but I haven't checked that it reaches NoContraction.

Also, #333 left NaN through a VOP3 clamp and the sign of an OMOD'd zero open because MODE bits 8 and 9 aren't known. I can run those forms on an RDNA 2 card under every MODE value if you want to know what the hardware does in each case.

<!-- greyfinch-sync:brcly/TuxBox:comment:7247029516 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/334#issuecomment-7247029516). Originally posted by [JeffreyBytes](https://github.com/JeffreyBytes) on 2026-11-28T22:51:21Z. --- Two things from running `check_basic_alu_gpu.py` against hardware results (#420), in case they're useful for T3: `v_mac_legacy_f32` doesn't get the legacy multiply. `vector.rs` strips `_legacy` and remembers it, but only `v_mul_f32` and `v_mad_f32` check it, so `v_mac_legacy_f32` comes out as a plain `a * b + dst`. inf × 0x00400000 + 0x3f800001 gives 0xffc00000 instead of 0x3f800001. No recorded shader uses it. I can send the fix if you're not already in there. On RADV still rounding twice with `mad()` (#333): the SPIR-V from vkd3d-proton has `Fma` without `NoContraction`, which lets the driver split it. `precise` makes DXC tag the `FMad`, but I haven't checked that it reaches `NoContraction`. Also, #333 left NaN through a VOP3 clamp and the sign of an OMOD'd zero open because MODE bits 8 and 9 aren't known. I can run those forms on an RDNA 2 card under every MODE value if you want to know what the hardware does in each case.
brcly commented 2026-11-29 21:58:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by brcly on 2026-11-29T21:58:23Z.


@JeffreyBytes yes please, nobody's in v_mac_legacy_f32. Send the fix as a PR with the check_basic_alu_gpu.py case that fails without it (the inf × denormal one you quote). Thanks for the NoContraction note on #333 too.

<!-- greyfinch-sync:brcly/TuxBox:comment:7263300888 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/334#issuecomment-7263300888). Originally posted by [brcly](https://github.com/brcly) on 2026-11-29T21:58:23Z. --- @JeffreyBytes yes please, nobody's in `v_mac_legacy_f32`. Send the fix as a PR with the `check_basic_alu_gpu.py` case that fails without it (the inf × denormal one you quote). Thanks for the `NoContraction` note on #333 too.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
brcly/TuxBox#334
No description provided.