Cover gfx1013 VOP3 reciprocal and reciprocal square root in pixel readback #476
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/482"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by descent81 on 2026-11-22T06:33:03Z.
What the fixture checks
The pixel translator already accepts reciprocal and reciprocal square root. This fixture exercises their e64 encodings with scalar inputs. The same four instructions go through the gfx1013 assemble/disassemble test and the DXC pixel draw.
The last lane produces 2 before saturation. All expected outputs are exactly representable. As a negative control the test compiles a second shader with the third instruction changed from reciprocal square root to reciprocal. That channel then computes 1/16 instead of 1/4, and the renderer must report a pixel mismatch against the original reference.
Verification
e193712and on this branch with the same LLVM tools and gfx1013 reference. Coverage within that suite increased from 145 to 147 forms, addingv_rcp_f32_e64andv_rsq_f32_e64and retaining every previously covered form.