Repository navigation
Conversation
… zero A v_fma_mixlo_f16 into the VGPR of an f16 interpolation's first half (v_interp_p1ll_f16, whose second half writes another VGPR) read the old value with i32_of(..)?. That value is the first half's Val::Missing, so the failure reached the colour export and refused the whole program, reported as "the first half of an interpolation". Nothing reads the kept high half. write_half and low_half already keep zero for an old value without one; the v_fma_mix* arm now does the same. 8 of the title's deferred material pixel programs translate and validate now (14,156 -> 14,164 vertex and pixel programs emitted); no other program changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
In-game data point for this change, from an independent fix of the same failure (same diagnosis: Setup: Windows 11 Pro 26300, RTX 5070 Ti 16 GB (driver 32.0.16.2140, 32-lane waves), Ryzen 7 9800X3D, 32 GB. Release build of
AI use: Claude Code (Claude Opus 5.5) traced the failure, made the change, ran the tests and the game. |
|
Tested on an RTX 5080 (merged with #71, #81 and #38 on
Setup: NVIDIA GeForce RTX 5080 16 GB, driver 621.14, i9-13900KF, Windows 11 26200, release build. AI use: Claude Code, Claude Opus 5.5 built the merged branch, ran it on the machine above (the person at the machine played) and read the logs. |
|
Independent test run on commit
AI use: Antigravity (Gemini 4 Neon) ran clippy/tests locally and wrote this report. |
|
Offline coverage of this PR on the retail shader pack, measured alone on its base Method: worktree at
+8 gained, 0 lost. The eight: And these are precisely the programs the title is missing on my machine. On For what it is worth, #52 on the same base gains the same 8 but loses 160 ped/fire pixel programs, so this narrower change looks like the one to take. No game data; counts and program names only. |
|
Merged onto main 90228a7 and ran
|
|
In-title confirmation of what the coverage comment promised: this PR removes the refusal on my machine as well, not only offline. Same machine, same build as the coverage comment (
The three No game data; counts only. |
|
Current Checked
I'm closing this as superseded. Thanks to everyone who tested it. AI use: Claude Code (Claude Opus 5.5) ran the check on my machine and wrote this comment. |
Summary
8 of the title's deferred material pixel programs failed with
emit: the first half of an interpolation. The interpolation pairing itself was fine. What failed was a 16-bit write further on:v_fma_mixlo_f16keeps the high half of its destination, so the lowering read the oldv8withi32_of(..)?. That old value is the first half'sVal::Missing, so it propagated to the colour export and refused the whole program. Nothing reads that high half.write_halfandlow_halfalready treat an old value that has none as zero. This change makes thev_fma_mix*arm do the same.Changes
crates/victory-shader/src/emit/lower.rs: in thev_fma_mix_f32 | v_fma_mixlo_f16 | v_fma_mixhi_f16arm, an old destination without a value keeps 0 instead of failing the program, aswrite_halfdoes.crates/victory-shader/src/emit/mod.rs: testmixlo_over_an_f16_first_interpolation_half. It is a pixel program withv_interp_p1ll_f16/v_interp_p2_f16, thenv_fma_mixlo_f16into the first half's VGPR. It fails without the change (Unsupported { offset: 28, what: "the first half of an interpolation" }) and passes with it.pixelgets apixel_with(.., fp16)variant for the 16-bit TEXCOORD0 the test needs.Verification
4e17478.cargo clippy --workspace --all-targets --locked -- -D warningsand the same with--all-features: 0 warnings.cargo test --workspace --locked: 497 passed, 0 failed, 7 ignored (the new test included).cargo xtask policy: 169 files ok.victory translate --list --validateover the title's shader pack, base90228a7(4e17478changes no code) against this change. Aggregate counts and hashes only, no game data:emit: the first half of an interpolation: 8 → 0validated:38bf0814e721a1b3,78f3f2fc53a69531,8445dcb2b63aa197,007bb29b393d08c5,15547db9d31b056b,288c43f50bc7abee,5ddcaa08d4a51215,464ea474374b8ecd.VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024, on90228a7+ this change):38bf0814e721a1b3and78f3f2fc53a69531logshader translatedand get host mesh pipelines.78f3f2fc53a69531is first bound at frame 1880.7b0f736/1684989in the same scene, both were in theshader does not translatelist.Not tested
write_halfalready assumes.AI use: Claude Code (Claude Opus 5.5) found the cause, wrote the change and the test, ran the checks and the title on my machine, and wrote this description.
🤖 Generated with Claude Code