Shaders: lower standalone v_interp_p1_f32 #68
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/68"
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 Zettrox/ztrx. Originally posted by Artking175 on 2026-11-25T07:59:04Z.
A pixel shader can use the result of
v_interp_p1_f32without a matchingv_interp_p2_f32. I/O raising now records those first halves as weighted evaluations, so the existing lowering computesP0 + i(P1 - P0)from the vertex values. First halves already handled by a pair keep the existing lowering.The regression test exports the first half directly. Before this change it reproduced “the first half of an interpolation”, the diagnostic reported in #55. The exact shader from that report still needs a game run to verify.
cargo test --locked -p victory-shaderpassed on macOS (171 passed, 2 ignored).cargo check --locked -p victory-shader --tests --target x86_64-pc-windows-msvcpassed. No game files were used.Imported from Zettrox/ztrx. Originally posted by Bullet18x on 2026-11-25T08:24:09Z.
Tested on an RTX 5090, stacked with #69, #36, #35 and #33.
standalone_interpolation_first_half_reads_the_verticespasses on the card.In game, though, this pixel shader still fails the same way with the PR merged:
38bf0814e721a1b3fails at the same offset 0x1464 onmainbut wasn't reached in the shorter run. So the form this title uses at 0x1464 seems to be one the PR doesn't cover yet. I can send the shader or run a build with extra logging if that helps.Imported from Zettrox/ztrx. Originally posted by Artking175 on 2026-11-25T08:59:39Z.
@Bullet18x Thanks for the precise shader hash and offset. The update in
7b623a2keeps the first interpolation result when another instruction reads it or when the FP16 second half preserves part of the destination. It also uses the requested destination half. The packed FP16 case follows the failure analysis in victory-fork #203.Could you retest
78f3f2fc53a69531and, if available,38bf0814e721a1b3on this head? An offlinetranslate --validate --pipelines --listrun is enough. Please share whether each shader emits DXIL, validates, and creates a D3D12 pipeline, or its new refusal and offset.The combined retest branch has both fixes and optional
VICTORY_REFUSAL_CONTEXT=1logging. If a shader still fails, the text from itsshader refusalline would help. It includes the likely producer and consumer offsets without a shader dump.Locally, 175 shader tests passed and 2 were ignored. Windows x64 Clippy passed. The exact title shaders are still awaiting retest on this head.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.