D3D12.X: log the driver's refusal of a translated compute PSO #1300
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!1300
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1300/head"
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?
@zorde23 on GitHub · 2026-11-24 14:30 UTC · original
zorde23:preload-log→main· +8 −0 · 1 files · 1 commits · closed without mergingPart of #1035.
When the driver refuses a compute PSO built from a translated console shader, XCL only told
note_translation_error, whichlogs its first 40 distinct reasons. A retail title's mesh warnings use those up in its first seconds, so on an RX 6750 XT a
~14 MB program the AMD driver worked on for ~46 s and refused with E_OUTOFMEMORY — at ~53 GB of commit, in every run — left
no line at all. This logs hr, DXIL size and the time spent in the driver (first 16, then powers of two, like
resolve_within).note_translation_erroris still called (it feedsreport.json).What is in it
crates/xcl/src/hle/d3d12x/real.rs:translated_compute_psowarns on a refusal, with the time sincestarted(taken afterthe big-compile turn, so it is the time in the driver).
Tested
cargo test --workspace --no-fail-fast -- --test-threads=4, at ff1df7c: 748 passed, 3 failed, 41 ignored; at main930e8b4: the same 748 / 3 / 41. The 3 failures are the same on both and fail on this GPU on main(
title_textures::placed_title_textures_share_vram_and_preserve_pixels,title_textures::transitions_apply_when_their_list_is_submitted,vram::d32s8_targets_take_their_own_size_of_video_memory). SKIPPED GPU tests: none. No new test (logging only).47efa2e, 60 s smoke) the run logged ~53 s in:D3D12.X: the driver rejected a compute PSO (0x8007000e): ~14 MB DXIL, 47554 ms in the driver (1 so far)(size rounded here). On main930e8b4the big build ahead nolonger runs in the first 60 s (peak 18.5 GB on main too), so the smoke below has no refusal to log.
Regression run
main:
PR:
Not tested
AI use
and ran everything.
@futurepro62 on GitHub · 2026-11-24 14:46 UTC · original
Full-suite run, since this PR has no test report yet. Tested exact head
ff1df7c(on its base930e8b4).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 751 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.#[test]functions in the diff.Not tested
AI use
@tugasky on GitHub · 2026-11-24 15:29 UTC · original
Tested on a card and a driver the PR has not seen: AMD Radeon RX 9070 XT (RDNA4, gfx1201), driver 32.0.32029.2010; AMD Ryzen 7 9700X, 31 GB; Windows 11 Pro 26300; Rust 1.98.0 MSVC; release. Both builds are the same tree plus this commit, built back to back.
Tested
cargo test --workspace --release --no-fail-fast -- --test-threads=4(19 binaries), at ff1df7c: 751 passed, 0 failed, 41 ignored; at main930e8b4: 751 / 0 / 41. ZeroSKIPPEDlines — this card has wave64 and mesh, so nogpu::test returned early throughgpu_ready().title_textures::placed_title_textures_share_vram_and_preserve_pixels,title_textures::transitions_apply_when_their_list_is_submitted,vram::d32s8_targets_take_their_own_size_of_video_memory.scripts/smoke.ps1 -Seconds 60on the retail title, once per build (XCL_NETWORK=0), blocks below.Regression run
main:
ff1df7c:
The low
presents per 2 sis not a regression and not this commit: at 60 s this title is still in its firstdxilcompile on this machine (the window title readscompiling shaders: … 52147 pipelines queued), unlike your 6750 XT run which already shows 60 60 60. Steady state here is 60 presents per 2 s (30 fps), reached at ~100 s — outside the smoke window, so the block above says nothing about it either way.The line never fires on this card, and that is the interesting part
I also ran the title past the smoke window on ff1df7c, pressing A every 8 s from 20 s to get past the menu into the world load: 114.6 s, 20 245 log lines, 78
WARNlines (the usual[STUB]/QueryInterfaceones, so the sink works), and zerothe driver rejected a compute PSOlines — nothing in the log, nothing on stdout/stderr. The run ended in the same abort this title always ends in here,0xc0000005write at0x0ingame_scarlett_master.exe+0x23cf683, the offset #505 reports.So on this card the wall is not a driver compute-PSO refusal: no
E_OUTOFMEMORY, no0x887a0006; the long run on main930e8b4haddxilcache 60 hits / 72 compiles / 0 failures andfallback_pipelines 0. Your 6750 XT reaches the ~14 MB program at ~53 GB of commit; here commit peaks at 28.2–29.1 GB of 31.1 GB and the big build-ahead never gets that far — consistent with your own note that main930e8b4no longer runs it in the first 60 s.That makes the change worth merging as diagnostics that cost nothing when the path is not taken (it is silent here, and both blocks and the suite are identical to main), but it does not give you a second refusal to compare with — for that the card that hits
E_OUTOFMEMORYat the commit limit is still the only one reporting.Written with AI assistance (Cline); every number above was produced by the commands shown on the hardware named.
@DavidM1911 on GitHub · 2026-11-24 15:52 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib -- --test-threads=1: all passed, 0 failed, 21 ignored. (Parallel runs intermittently abort with 0xc0000005 — same harness flake seen on unmodifiedmain.)Thanks!
@zorde23 on GitHub · 2026-11-25 14:17 UTC · original
Closing this: #1918 (merged) logs the driver's refusal of a huge compute program with its record, DXIL size, HRESULT and time in the driver, which is what this PR was for. Rebased onto current
main, this commit has nothing left to add. #1665 no longer depends on it.Written with Claude Code from runs on this machine.
@DavidM1911 on GitHub · 2026-11-26 04:47 UTC · original
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current
mainon the new head — needs another rebase before it can be tested.Pull request closed