Repository navigation
Conversation
VOP3 abs and neg on v_lshl_add_u32, v_add_lshl_u32, v_alignbit_b32 and v_alignbyte_b32 stopped translation as integer operand modifiers. RDNA2 applies them to a source's bit 31, as on a float: abs clears it, neg flips it (boykopovar/AnyPS5#25964, all combinations on gfx1036 and gfx1201; #25799 for the align ops). Other integer operations still refuse them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Triage verdict — Ready for maintainer decision; one useful test addition ( Evidence
Checks and limits
Next step
This verification was AI-assisted. |
catminou4
left a comment
There was a problem hiding this comment.
Tested locally: macOS arm64, rustc 1.98.1, PR head merged into main 940d32f, cargo test -p victory-shader --locked.
144 passed / 0 failed. abs/neg on shift-add and align ops act on the sign bit — ALU semantics fix for the packed shift-add path.
Two cases set both modifiers on the same source (add_lshl src0, lshl_add src2): abs clears bit 31, then neg sets it. They fail if the two are applied the other way round (checked by swapping them locally). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Added the combined case in AI-assisted (Claude Code). |
|
Verified on Windows 10 19045 (RX 7800 XT), head
On the semantics: treating The GPU-valued cases skip here and run in CI; no unrelated failure in the suite on this tree. |
|
Automated triage for the maintainers. Merge candidate. Recommending a look, not approving.
CI: Generated by Claude Code |
Offline measurement on a retail dumpResult: no count change against I merged head eed34ee onto No program changes its failure reason. The count shows that the change rejects nothing on this data. It does not show whether the output is right. No shader names or data are included, per the asset policy. AI-assisted (Claude Code). |
|
AMD check at
Synthetic tests only, no game files. Tested with AI assistance (Claude Code). |
VOP3
absandnegonv_lshl_add_u32,v_add_lshl_u32,v_alignbit_b32andv_alignbyte_b32stopped translation with "integer operand modifiers". RDNA2 applies them to a source's bit 31, as for a float:absclears it andnegflips it. There is no integer negate or absolute value.Sources: boykopovar/AnyPS5#25964 measured every
abs/negcombination on the two shift-adds on gfx1036 (RDNA2) and gfx1201 (RDNA4), 196/196 words matching on each. boykopovar/AnyPS5#25799 measured the align ops on gfx1036: on src1 the bit reaches the result, and on src0 and the shift amount it can't change it. xcl-dev/xcl#2058 is the same fix in XCL, where the modifiers were silently dropped.What is in it
emit/lower.rs,src: for those four opcodes,absandnegbecomex & 0x7fffffffandx ^ 0x80000000on the source. Every other integer operation still returns "integer operand modifiers" when it has them, since only these four are measured.emit/valu_tests.rs:shift_add_and_align_take_sign_bit_modifierscovers neg on src2 ofv_lshl_add_u32, abs on src0 ofv_add_lshl_u32, and neg and abs on src1 of both align ops. Each case is built so the modifier can't be shifted out.Tested on Windows 11, RTX 3070 (Ampere, driver 616.56), debug, on
main940d32f:lower.rschange the build stops withUnsupported { what: "integer operand modifiers" }.cargo test -p victory-shader --locked: 245 passed, 3 failed, 3 ignored. The 3 are Test report: RTX 5070 (Blackwell), Windows 11, 70564ae: 471 passed, 5 failed, 7 ignored (4 from the 1,000,000 view heap cap) #1744's NVIDIA failures onmain.cargo clippy -p victory-shader --all-targets --locked -- -D warningsandcargo xtask policy: pass.Not tested: AMD hardware, a title.
AI-assisted (Claude Code).
🤖 Generated with Claude Code