Repository navigation
Conversation
Device slot 67 (0x218) was empty, so the FidelityFX upscaler fell through to create_compute_x with no usable shader. Assemble the FSPX sections into an ACCC container so the existing translation path can run. Related: Marvisak#1468, Marvisak#887. Co-authored-by: Matsvey Makushenka <matvey.myown@gmail.com>
CI failed on clippy::useless_vec for a fixed-size test buffer. Co-authored-by: Matsvey Makushenka <matvey.myown@gmail.com>
Xvania7
left a comment
There was a problem hiding this comment.
Verification on native Windows 10 x64, NVIDIA GeForce RTX 5060, Rust 1.98.1.
Checked out b5c0f6d into an isolated tree to cover the Windows host build and victory-gpu unit tests not runnable on Linux:
cargo test -p victory-gpu deserialize_compute_x:pipeline::tests::deserialize_compute_x_rejects_a_null_description ... okpipeline::tests::deserialize_compute_x_assembles_an_accc_compute_pipeline ... ok
cargo clippy -p victory-gpu -- -D warnings: 0 warnings, clean.cargo run -p xtask -- policy: clean (asset policy: 182 files ok).
Wired slot 67 cleanly hands out the assembled ACCC container and pipeline translation without regressing translate(). LGTM.
catminou4
left a comment
There was a problem hiding this comment.
Wire DeserializeComputePipelineStateX to assembly (+166). Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1.
|
Automated triage for the maintainers. Needs work: evidence and wording. Wires device slot 67 (0x218) in
CI: Generated by Claude Code |
|
Data for the triage points, from the title on Windows 10: Radeon RX 7900 XTX (RDNA3), Adrenalin 32.0.32015.7029, 1. The argument layout, from captured calls. I saved the first 24 descriptions the title hands to slot 0x218. There is one call site, return address 3. On With the PR, all 2,689 calls of a run assemble, and 8 minutes into the world nothing crashed. But 1,475 of them fail to translate with "an FSPX resource of an unknown root type". Those are CBVs as root constants (record byte 5 = 0). The records give no dword count. In all 1,469 distinct programs the constants are the last parameter, and let user_sgprs = (u32_at(packet, PACKET_RSRC2)? >> 1) & 0x1f;
let starts: Vec<u8> = records.iter().take_while(|e| e[0] != 0x43)
.filter(|e| e[0] == 0x41 && RootType::from_raw(e[5].into()) != RootType::ImmediateSampler)
.map(|e| e[21]).collect();
// in the match on the root type:
RootType::Constants => {
let end = starts.iter().map(|&s| u32::from(s)).filter(|&s| s > u32::from(u.user_data))
.min().unwrap_or(user_sgprs);
end.checked_sub(u.user_data.into()).filter(|&n| n > 0)
.ok_or(Malformed("FSPX root constants past the user SGPRs"))?
}It is commit |
|
In-game test on Series X 1.0.2.1: this fixes slot 67, but the pipelines it hands out do not translate, so the world loses most of its draws. Setup: RX 9070 XT, Mesa RADV, Proton Experimental (vkd3d-proton
Without a handler, the title goes without these pipelines and takes a path that renders. With the handler, it uses them, every dispatch through them is dropped, and what reads their output is missing. On the 7900XTX fork the result is a black picture while the frame counter keeps running. There, about 2,600 draws and 900 indirect executions per frame were dropped. So the slot is not used only by the FidelityFX upscaler, as the description assumes. The title creates hundreds of its own compute pipelines through it. The assembled I'd suggest not merging until the assembled containers translate. Gating the handler to the upscaler's callers would also work. I can rerun any revision of this on the same setup. |
What's wrong
Device slot 67 (
0x218,DeserializeComputePipelineStateX) is empty onmain. The FidelityFX upscaler (amd_fidelityfx_upscaler_xbox.dll) calls it with precompiled FSPX sections; without a handler it falls through tocreate_compute_xand ends up with a pipeline that has no usable native code, so those dispatches are dropped.ACCCcontainers already translate onmain(translate_with/with_resourcestake theACCCpart when there is noDXIL). The remaining gap is assembling the deserialize call's sections into such a container.What the change does
deserialize_compute_x.ACCCcontainer (same layoutfspx_programalready reads) and hand out a compute pipeline, so translation follows the existing ACCC path.victory_shader::dxbc::buildavailable outside tests for that assembly.native_programs, and reject a null description.Deliberately does not refuse FSPX in
translate()— that would undo working ACCC translation (see maintainer note on #1468).Related: #1468, #887.
Tests
On this Linux agent:
cargo xtask policy— okcargo test -p victory-shader --locked --lib— 144 passedvictory-gpulib tests / Windows cross-compile — not run here (host_resourceiscfg(windows); noml64for the Windows target)Expect upstream
windows-latestCI to exercise the newdeserialize_compute_x_*tests.Asset policy
No game data used.