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. |
…ject (port upstream xcl-dev#2448 + xcl-dev#2693)
|
Windows / NVIDIA results for Regression run (default settings, 600 s)
This PR,
Tested
Not tested: whether the title's compute streams carry nonzero flags (no log line); AMD / wave64. AI use: Claude Code (Claude Opus 5.5) built the commit, ran the suite and the runs on my machine, read the logs and wrote this. |
|
Independent desktop NVIDIA verification of PR #2693 at head Environment
Targeted release tests & build (
|
| Command | Result |
|---|---|
cargo test --release -p xcl --lib a_compute_stream_keeps_its_flags_subobject -- --nocapture (3 consecutive runs) |
1 passed; 0 failed; 0 ignored; 1336 filtered out × 3 (0.02s × 3, 0 skipped) |
cargo test --release -p xcl --lib hle::d3d12x::real:: -- --test-threads=1 (3 consecutive runs) |
61 passed; 0 failed; 0 ignored; 1276 filtered out × 3 (1.91s, 1.89s, 1.91s, 0 skipped) |
cargo build --release -p xcl |
Clean build (1m 08s, exit 0, 0 new warnings) |
Paired quiet 60 s retail smoke (title: 29640639)
Exact parent & merge-base (b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, cached baseline on the same machine):
xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1518 (PresentX 1518)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14018 MB
PR #2693 (ab87bf620d811915898eabfaa185164070d11dd0):
xcl-smoke v1
commit: ab87bf620d811915898eabfaa185164070d11dd0
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1597 (PresentX 1597)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14011 MB
Runtime log observations (xcl.log)
9221log lines,0[ERROR]/ device-removal / panic lines.- Final draw/memory telemetry in log:
19450 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample14011 MB committed by the process; video memory 6116 MB local, 4684 MB non-local.
Limits of coverage
- Preserving the
FLAGSsubobject in a console compute pipeline stream was verified directly viaa_compute_stream_keeps_its_flags_subobject(3/3) andhle::d3d12x::real::(61/61× 3,0skipped). - The 60 s retail smoke on
title: 29640639confirms zero runtime regression on compute pipeline stream creation (frame-count delta vs. cached parent reflects single-run startup variance, not this PR).
AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
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.