[Ready to merge] FSPX container parsing, slot 67 mapping, and diagnostic tracing for FSR4 upscaler #1467
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Marvisak/VIctory. Originally posted by Xvania7 on 2026-11-24T18:16:35Z.
This PR adds diagnostic infrastructure for the
FSPXcompute containers used byamd_fidelityfx_upscaler_xbox.dll(FSR4 post-process upscaler). It does not yet translate RDNA2 bytecode to DXIL — that remains future work — but it makes the problem visible and opens a path to force the engine's internal DXIL fallback.What it does
FSPX container parsing (
crates/victory-shader/src/dxbc.rs):FourCC::ACCCdetection.Fspx::parse()andinspect_fspx(), extractingNumThreadsX/Y/Z,wave32/wave64, RDNA2 code size, and kind 1/6/7 metadata.translate()now returns an explicitUnsupported("FSPX compute module")instead of a misleadingno DXIL part.Device slot 67 (
DeserializeComputePipelineStateX) mapping (crates/victory-gpu/src/pipeline.rs):0x218) is now wired to return a configurable HRESULT (E_FAILby default), zeroing the out pointer.VICTORY_SLOT67_HRallows testingE_FAIL,E_INVALIDARG,E_NOTIMPL, andS_OKwithout rebuilding.create_compute_x) can reject FSPX withVICTORY_FSPX_REJECT_SLOT62=1.Diagnostics:
Shader::translated()logs the shader hash, thread group dimensions, wave size, and container size for every FSPX module.missing()inpipeline/make.rsnow tags dropped pipelines ascompute <hash> (FSPX compute module).Why it matters
Before this change, the DLL's
E_NOTIMPLon slot 67 caused it to fall back to slot 62, which returnedS_OKwith a "no-shaders PSO". Every dispatch was then dropped indraw.rs, leaving the 2560×1440 target at clear color (the black screen). With slot 67 mapped and configurable, testers can now observe how the DLL and the engine react to pipeline creation failures, and whether the engine's internal DXIL post-process fallback activates.Verification
cargo test -p victory-shader— 54 passedcargo test -p victory-gpu— 52 passedcargo clippy --all-targets -- -D warnings— cleancargo xtask policy— 154 files okBranch:
fix/issue-887-fspx-shaders(commitd7d0770)Related: #887 (FSPX root-cause analysis),
experiment/fspx-force-dxil(commite60e91c, fallback experiment).Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T10:20:27Z.
Automated triage for the maintainers.
This is a change on a fork branch (
fix/issue-887-fspx-shaders,d7d0770), not a pull request. Pull requests are open to everyone now, so please open one against currentmain. No open PR carries this change yet.Checked against
main940d32f:ACCCcontainers already translate.translate_with(crates/victory-shader/src/emit/mod.rs) andwith_resources(crates/victory-gpu/src/pipeline.rs) take theACCCpart when there is noDXILpart, andemit/valu_tests.rsruns such programs on the GPU. The part of the branch that makestranslate()refuse FSPX modules would undo that, so it needs re-checking after a rebase.0x218) is still not filled incrates/victory-gpu/src/device.rs, so wiring it may still be useful.The background is in #887.
Generated by Claude Code