Repository navigation
D3D12.X: keep the FLAGS subobject of a console compute stream (#2607) - #2693
kotekompotek wants to merge 1 commit into
Conversation
…v#2607) stream_pipeline's console-CS branch mapped only the root signature, the shader and the node mask; a FLAGS subobject (type 20) in a PIPELINE_STATE_STREAM was dropped, so a title that builds its compute PSO through a stream desc always reached dev_create_compute_pso with Flags 0. The graphics branch already forwards type 20, and the legacy compute path feeds desc.Flags into the driver cache key verbatim, so no normalisation is needed - put() it the same way. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Tested on the Linux/Wine lane, full standard env (AMD rig: Ryzen 9 9900X, 96 GB DDR5, RX 7900 XT 20 GB, Arch kernel 7.2.15, Mesa 26.2.5 RADV, wine-11.0 Proton, rustc 1.94.0; |
|
RX 6800M verification at PR head
The title launched and presented frames on this AMD card. This short startup smoke does not establish that the title submitted a compute stream with nonzero FLAGS, and it does not cover world load or a performance comparison. I did not run the full workspace suite on this head. AI-assisted test report with Codex. |
|
Tested (independent run, synthetic only): PR head
Not tested
AI use |
|
Test report: passes on NVIDIA. Exact head Tested
Not tested
Claude Code (Claude Opus 5.5) ran the tests and wrote this report. |
|
Tested - retail title on native Windows AMD RDNA2, PR head Tool: OpenCode with DeepSeek V4.1 Flash 1017
The first PR run rebuilt the compute PSO cache now that FLAGS is in the key: 658 s of Not tested: full workspace, NVIDIA, debug build, world/FPS runs. AI use: OpenCode with DeepSeek V4.1 Flash 1017 ran the tests, read the logs and wrote this comment; the figures and crash lines were checked against the run logs. |
Fixes #2607 (part of #2508).
stream_pipeline's console-CS branch projects aPIPELINE_STATE_STREAMonto a zeroedD3D12_COMPUTE_PIPELINE_STATE_DESC, mapping only the root signature (type 0), the shader (6) and the node mask (18). A FLAGS subobject (type 20) in the stream was dropped, so a compute PSO built through a stream desc always reacheddev_create_compute_psowithFlags0 - while the same title's legacyD3D12_COMPUTE_PIPELINE_STATE_DESCkeeps its flags. SinceFlagsfeeds the driver's PSO cache key (compute_blob_key/driver_cache::path_for), a stream-created PSO could also alias a legacy-created one with different flags.The graphics branch of the same function already forwards type 20, and no console-to-PC flag normalisation exists anywhere in the code, so the fix passes the subobject through verbatim the same way.
What is in it
crates/xcl/src/hle/d3d12x/real.rs:20 => put(&mut c.Flags, p)in the compute branch ofstream_pipeline, matching the graphics branch; a unit test that feeds a synthetic stream (console CS + FLAGS=1) through it and asserts the projected descriptor keepsFlags.Tested
cargo test -p xcl --lib a_compute_stream_keeps_its_flags_subobject: fails without the fix (Flagsstays 0), passes with it.cargo test --workspace --no-fail-fast -- --test-threads=4onab87bf62(parentb49be183, which merges cleanly): 1433 passed / 3 failed / 47 ignored, 357 GPU tests SKIPPED. The 3 failures are the known environment-bound ones (SM 6.5 / driver HRESULT / DXC barrier diff), same set as upstreamb49be183- details under Not tested.Regression run
Run under load-matched conditions on
D:\GTA6.Xbox.v1.0.2.1,-Seconds 0(the only window that reliably precedes the title's entry-point int3 on this hardware), both binaries release-built.Main
b49be183:PR head
ab87bf62:Not tested
AI use
Devin (SWE-2 High) implemented the fix and test, ran the suite and smoke runs, and wrote this PR.