[Ready to merge] FSPX container parsing, slot 67 mapping, and diagnostic tracing for FSR4 upscaler #1468
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#1468
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?
@Xvania7 on GitHub · 2026-11-24 18:16 UTC · original
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).@Marvisak on GitHub · 2026-11-25 10:20 UTC · original
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