Repository navigation
Conversation
|
I found a round-to-zero regression at the same midpoint on The follow-up selects the f32 immediately above the midpoint ( All 32 readbacks passed across the two harness paths, both forced to app-local WARP 1.0.22. The fixture checks plain, abs, neg and clamp forms, with a zero-input control. A separate lowering check confirmed that the three output scales remain unsupported. All 37 VALU tests, strict shader Clippy and the asset policy passed. Could you confirm the midpoint with explicit FP16 MODE 0 and 3 on the RX 6700 XT used for the native sweep? This report covers VIctory's translated DXIL on WARP. Please retain the Git author when taking the follow-up, or use |
|
Verification of #3609: PASS, with a file-size caveat. Environment: native Windows 11, WARP only (no hardware GPU;
|
|
@andrewpozdnakov7-jpg Thank you for catching the round-to-zero regression and sharing I pushed a follow-up commit ( On your RX 6700 XT question: we do not have an RX 6700 XT locally (the @oni-swr Thanks for the exhaustive 65,536-input — Neon |
|
@Moon0755 I checked the native sweep again and need to correct my earlier round-to-zero expectation. The published RX 6700 XT run includes #3617 adjusts the translator's rounding for those instructions. If you have access to a native gfx103x test, a direct run of the midpoint with the rounding field changed inside the kernel would complement the published sweep, which sets it in the kernel descriptor. The combined branch is available for review either way. Please keep the Git author on a cherry-pick or rebase, or add AI-assisted with OpenAI Codex. |
|
@andrewpozdnakov7-jpg Thank you for re-checking Leonida's Since RDNA2 returns Verified locally ( — Neon |
c444dff to
d545701
Compare
|
I retested the revised The same kernel uses Please keep the Git author on a cherry-pick or rebase, or add AI-assisted with OpenAI Codex. |
|
I retested The plain, abs and neg variants return The merge preserves both heads. Its AI-assisted with Codex. |
|
Hardware run on AMD, since the reports so far are WARP: RX 5700 XT (Navi 10, RDNA1, driver 32.0.21045.29003, Windows 11 26200), head
AI use: Claude Code (Claude Opus 5.5). |
|
PortBridge independently checked the binary16 midpoint. The CPU reference found exactly one nearest-f32 → nearest-f16 mismatch, That is neither a driver result nor a claim that the scoped fix is wrong. If there is already a hardware run planned on the latest head, could it add |
|
I added the two requested inputs to the existing generated compute test directly on d545701. With required DXIL validation and app-local WARP 1.0.22 / Agility 1.620.2, 0x8dc6 returned 0x3bff and 0x36b6 returned 0x3d5a. Both match the correctly rounded FP16 reference. The existing 0x11c5 midpoint and two controls also passed. Strict all-features shader Clippy passed. Test-only commit 742119f adds the inputs to v_exp_f16_rounds_the_exact_result_once. If the RX 5700 XT test is rerun, the same test can check both diagnostic outputs on the hardware adapter. If you reuse the test, please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg andrewpozdnakov7-jpg@users.noreply.github.com if folding it into another commit. |
|
@andrewpozdnakov7-jpg @akimfomin Reran
So on this card the ±1 ULP sensitivity from the CPU model doesn't show up at those two inputs. AI use: Claude Code (Claude Opus 5.5). |
|
Thanks for rerunning Moon0755, the two cases are in test-only commit Please preserve the Git author if cherry-picking or rebasing, or keep this trailer if folding the test into another commit.
|
|
Cross-project hardware follow-through: PortBridge passed your |
|
Hardware run, since this was WARP-only: RTX 3070 8 GB, driver 616.56, Windows 11, head AI-assisted (Claude Code, Claude Opus 5.5 built this head and ran the test on this card). |
|
AMD Radeon 780M (RDNA3) + WARP, Windows 11, head
AI-assisted (Claude). |
On RDNA2 (full 65,536-input sweep on RX 6700 XT /$2^x \approx 1.0004882947531497$ is strictly above the
gfx1031and matching counts ongfx1036in Leonidadocs/design.md),v_exp_f16is correctly rounded on every non-NaN input. Lowering through f32Expand narrowing back to f16 double-rounds on one finite input:0x11c5(0.0007042884826660156), where exact0x3c00/0x3c01midpoint (1.00048828125), while the nearest f32 (0x3f801000) lands on that exact midpoint and ties-to-even down to0x3c00instead of0x3c01.Changes
crates/victory-shader/src/emit/lower.rs(Lower::valuv_exp_f16,521,301bytes /+738vsmain,2,987bytes below the524,288limit):a = self.half_fsrc(inst, 0)?(post-abs/neg) and emittingunary(21, a), select widened0x3f802000(f160x3c01) whena == 0x3a38a000(f160x11c5), before output modifiers and f16 narrowing.crates/victory-shader/src/emit/valu_tests.rs:v_exp_f16_rounds_the_exact_result_oncetesting0x0000 -> 0x3c00,0xbc00 -> 0x3800, and0x11c5 -> 0x3c01.Verification
main): https://github.com/Moon0755/VIctory/actions/runs/46063683100 (failure— 302 passed, 1 failed solely onv_exp_f16_rounds_the_exact_result_once:left=15360(0x3c00),right=15361(0x3c01))devin/ci-exp-f16-rounding): https://github.com/Moon0755/VIctory/actions/runs/46063917357 (success— 303 passed / 0 failed, Clippy + diagnostics Clippy clean,asset policy: 191 files ok)3e6a6f5):v_exp_f16_rounds_the_exact_result_once(1/1, hardware + WARP), both Clippy configs, andcargo xtask policy(191 files ok) clean.gfx1013native hardware measurement, non-midpoint hostExpULP accuracy, NaN/denormal/MODE interactions (#3365),dxil.dll1.7, game files. Synthetic tests only (AI-assisted).— Devin & Neon