D3D12.X: keep the FLAGS subobject of a console compute stream (#2607) #2693
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2693
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2693"
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?
@kotekompotek on GitHub · 2026-11-26 06:29 UTC · original
kotekompotek:fix/compute-stream-flags→main· +44 −0 · 1 files · 1 commits · openFixes #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.
@SlopTart on GitHub · 2026-11-26 06:50 UTC · original · edited 2026-11-26 07:02 UTC
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;
d3d12,d3d12core,dxgi,d3d11,d3d10core=n,boverrides, official DXC kit,VKD3D_CONFIG=ignore_shared_fence, threads=2), headab87bf62, mergeable against mainb49be183:non-gpu suite (
--skip gpu::): 598 passed, 2 failed, 4 ignored, 733 filtered.The failure set is identical to bare main
b49be183measured on the same rig the same day (596 passed, 3 failed): gpu_promoted_uav_clear (our #2490), xma2_source_voice (#2481, vendored-FAudio gate). The third red, the sparse tile video-memory test, is a known batch flake (green solo; it did not reproduce in this run).Zero delta from this PR; every test it adds passes inside the suite.
Not tested: gpu suite, Windows native.
Correction: an earlier version of this row reported three extra reds; those runs lacked the
d3d12,d3d12core=n,bDLL overrides and hit stub-DLL NOTIMPL artifacts. Re-ran with the standard env, artifacts gone.AI use: Hermes agent (local Qwen-class) ran the tests and drafted this; I checked it before posting.
@luckyteagirl on GitHub · 2026-11-26 06:57 UTC · original
RX 6800M verification at PR head
ab87bf620d811915898eabfaa185164070d11dd0against current mainb49be1836844fe0b0cdb3211dce3cb7fb4e21ac7(Windows 11, AMD driver30.0.13002.13003, Rust 1.99.0 MSVC):cargo test --locked -p xcl --lib a_compute_stream_keeps_its_flags_subobject -j 1 -- --test-threads=1 --show-output: 1 passed, 0 failed, 0 ignored, 1,336 filtered. This exercises the synthetic compute stream with FLAGS.cargo build --locked --release -p xcl -j 1: passed; head executable SHA-2561F41990B09FCE382DCD9180E5FC7CEB1F27B8DBAAB72C86EBE5E3C3D8ABF3FE5.scripts/smoke.ps1 -Seconds 12, pinnedXCL_ADAPTER=6800Mand separate data/DXIL cache directories, on the same locally owned title build (hash2ef5fd64):b49be183ab87bf620x00x0The 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.
@oni-swr on GitHub · 2026-11-26 07:00 UTC · original
Tested (independent run, synthetic only): PR head
ab87bf620d811915898eabfaa185164070d11dd0vs its parentb49be1836844fe0b0cdb3211dce3cb7fb4e21ac7.cargo test --workspace --locked -j 4 --no-fail-fast -- --test-threads=4:b49be183: 1434 passed, 1 failed, 47 ignoredab87bf62: 1435 passed, 1 failed, 47 ignoredgpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1,seed 722: res[30] = 0x1, CPU 0x7fffffff.f16_programs_on_the_gpuand 2xf32_programs_on_the_gpu(refused, #1426 semantics), andheap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows). These are not counted as coverage.cargo test -p xcl --lib a_compute_stream_keeps_its_flags_subobject: passes on the head. Control: on the parent with only that test applied (the one-line20 => put(&mut c.Flags, p)absent) it fails withthe FLAGS subobject must reach the projected compute desc(left 0, right 1).Not tested
AI use
Claude Code (Claude Sonnet 5.5) ran the tests and wrote this report, coordinated by Codex (gpt-6.2-sol).
@sage-sage on GitHub · 2026-11-26 07:05 UTC · original
Test report: passes on NVIDIA. Exact head
ab87bf62(its base is currentmainb49be18, so head = merged).Tested
cargo test --workspace -- --test-threads=4: 1436 passed, 0 failed, 47 ignored;a_compute_stream_keeps_its_flags_subobjectpassesmainon this machine): 21 wave64 tests (NVIDIA is wave32 only), 3 per-lane wave32 f16/f32 forms (refused), 3 D3D12 debug layer (d3d12SDKLayers.dllnot installed), 1no heap windows, 1pso_measurement_compiles_an_exact_synthetic_record(Developer Mode off)20 => put(&mut c.Flags, p)line taken out (local only): the new test fails (the FLAGS subobject must reach the projected compute desc), so it covers the fix.Not tested
Claude Code (Claude Opus 5.5) ran the tests and wrote this report.
@relativespace2K on GitHub · 2026-11-26 07:36 UTC · original
Tested - retail title on native Windows AMD RDNA2, PR head
ab87bf620d811915898eabfaa185164070d11dd0onmainb49be1836844fe0b0cdb3211dce3cb7fb4e21ac7Tool: OpenCode with DeepSeek V4.1 Flash 1017
Windows 11 IoT Enterprise LTSC 26100; release build; DXC 1.9.2602.17.
cargo test --release -p xcl --lib -- a_compute_stream_keeps_its_flags_subobject --nocapture:1 passed, 0 failed, 0 ignored, 0 skipped, 1336 filtered out.
XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_FRAME_DUMP=1 XCL_RUN_SECONDS=240, no other XCL_* variables; warm shader/pipelinecaches.
main(warm)The first PR run rebuilt the compute PSO cache now that FLAGS is in the key: 658 s of
driver compiles and a 35.2 GB peak. The warm repeat normalized to 31.7 GB peak and 210 s
of compiles, against 183 s on
main- within run-to-run variance. No crash, no error,0 failed pipelines, 0 DXIL failures; 40 mesh refusals on both trees. The title still
stalls on its loading screen (last present around 100 s), so there is no world or FPS
comparison in this window.
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.
@jennydeth on GitHub · 2026-11-26 15:25 UTC · original
Windows / NVIDIA results for
ab87bf6with the retail title (1.0.2.1) on an RTX 3060 12 GB.Regression run (default settings, 600 s)
mainb49be18:This PR,
ab87bf6:main's 2,047 (95 %) and peak commit of 35,709 MB against 35,859 MB (100 %), with no removal and no crash in either. Neither run reaches the world: presents stop at 100.3 s onmainand at 94.4 s with this PR, while big compute programs are still compiling.mainin the pair, and 49 against 55 in the direct DXIL runs. Nothing is logged when a compute stream carries a FLAGS subobject, so I can't say whether this title's streams have one.XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_DRED=1, warm caches, 900 s): the device was lost (0x887a0005, #2403) at 113.9 s, last present at 110.2 s, with the same DRED line as onmain(page fault at GPU VA 0x0; allocations there: []; recently freed: []). Threeb49be18runs today with the same switches lost it at 110.6, 211.2 and 216.0 s, so one run can't tell this PR apart frommainthere.Tested
stable-x86_64-pc-windows-msvc); release; DXC 1.9.2609.5.cargo test --workspace --release --no-fail-fast -- --test-threads=4onab87bf6: 1436 passed, 0 failed, 47 ignored. SKIPPED (29): 21 × no wave64; 3 × per-lane form refused; 3 × no D3D12 debug layer /d3d12SDKLayers.dll; 1 × no heap windows; 1 ×pso_measurement_compiles_an_exact_synthetic_record(cannot disable the driver cache).scripts/smoke.ps1 -Game <folder>(XCL_NETWORK=0), the same scripted pad presses into the story load in every run;XCL_FRAME_DUMP=300in the pair,100in the direct DXIL runs. Every run was of a copy namedxcl-noprofile.exe: this machine has #2590's 1 GiB shader-heap profile onxcl.exe, and a copy under another name does not match it.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.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.