Repository navigation
Conversation
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
@DavidM1911 thanks. The one piece this draft still lacks is a regression run that gets past start-up: under Wine, plain AI use: Claude Code (Claude Opus 5.5) wrote this reply. |
|
Tested: current PR head merged onto current
Not tested: retail titles (no title data on this lane, counts only). AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting. |
|
I ran the requested native Windows smoke pair and a focused parser test on exact head Tested
Regression run Main PR head Source review The refusal check runs after the direct-DXIL dispatch-chain branch. Successful chains return before the check, and building their pieces invokes the driver. A listed record can therefore still reach the driver through the split path. This is a source finding on Not tested The full workspace suite and live AI use Yes, Codex GPT-6.2 reviewed the source, ran the PR-head checks, and drafted this report. |
|
@razormontana Thank you! I'll check it tomorrow (my time). |
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
|
@GreemSC two integration findings for e4705c1, checked against main b49be18.
Tested Static control-flow review of the pinned diff and main; inspected our rig's logged Not tested No new build, suite or title run for this review; no claim that all 1,004 records should be encountered in one run. AI use Codex (GPT-6.1-Sol) checked the code and log and drafted this comment. Claude Code (Claude Opus 5.5) checked the links and the line numbers. |
A program whose driver compile never ends takes the process's memory with it: under vkd3d-proton on RADV, the direct DXIL of record 95cc13288a27a96e (2.4 MB) started its compile 95-102 s into four retail runs and never finished while the game's memory grew from 9.8 GB to the 16 GB cap; xcl-dev#1035 is the same shape on the HLSL path. Testers carry local switches for this. `XCL_REFUSE_CS=HASH[,HASH...]` takes the record hashes that `driver compile start` logs; `XCL_REFUSE_CS=@path` reads them from a file (commas, spaces or one per line, `#` comments), for lists of a thousand programs. A listed program is refused before the driver sees it and takes the existing path of a refused compute PSO: its dispatches are skipped. The check comes right after the record hash, before every way a compute program reaches the driver: a warm whole pipeline, the pieces of a direct DXIL dispatch chain and the whole build. The `@path` list is read when the host starts, before the VFS hooks, so a host path on a drive the title's mounts also name is still found. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@KDenKC @razormontana thank you, both points are fixed in
Tested (RX 7900 XT, RADV, Linux, Proton-CachyOS Wine; Windows MSVC test binary under Wine): whole Not tested: Windows on this head. razormontana's RTX 3070 pair was on AI use: Claude Code (Claude Opus 5.5) made the change, ran the tests and wrote this reply. |
A switch to leave listed compute programs out of the driver:
XCL_REFUSE_CS=HASH[,HASH…], with the record hashes thatdriver compile start … record HASHlogs, orXCL_REFUSE_CS=@pathto read them from a file (commas, spaces or one per line,#comments; asked for on #505 for a list of ~1,000 programs). A listed program is refused before the driver sees it, by any of the three ways a compute program reaches it (a warm whole pipeline, the pieces of a direct-DXIL dispatch chain, the whole build), and takes the existing path of a compute PSO the driver refuses: its dispatches are skipped.Why: a program whose driver compile never ends takes the process's memory with it, and today the only way past it is a local patch. On Linux (vkd3d-proton, RADV), the direct DXIL of record
95cc13288a27a96e(2.4 MB) started its compile 95–102 s into four retail runs and never finished; the thread stays ind3d12core.dllat the same addresses, and the game's memory grew from 9.8 GB to our 16 GB cap. #1035 is the same shape on the HLSL path. Several testers carry their own switch for this (anXCL_REFUSE_CSof their own on #2057, a local skip of the ray-tracing resolve programs on #505), and #505 has one RX 7800 XT on Windows where the same program never finishes either.Part of #1035.
What is in it
crates/xcl/src/hle/d3d12x/real.rs:refused_cs/record_hashes(the variable or its@pathfile, read once; an unreadable file is logged and refuses nothing); the check right after the record hash intranslated_compute_pso_once, before theCachedWholeattempt,dispatch_chain::buildand the whole build;load_refused_cs; a unit test of the parsing (list and file forms).crates/xcl/src/host.rs:load_refused_cs()beforevfs::initand the VFS hooks, so an@pathon a host drive the title's mounts also name is read before it is remapped (found by KDenKC).README.md: the variable, next to the refused-program log line it reuses.Tested
cargo test --release -p xcl --lib --target x86_64-pc-windows-msvc --no-run), run under Wine with DXC 1.9.2609.--test-threads=4, skippingreset_dxgi_device_manager_with_d3d12_device_and_token_validation(it callsDXGID3D10CreateDevice, which Wine does not implement, and aborts the process): this head (rebased onb49be18) 1244 passed, 65 failed, 27 ignored, 7 SKIPPED;mainb49be18on the same machine: 1243 passed, 65 failed, 27 ignored, 7 SKIPPED. The 65 failures are the same tests on both (Wine / vkd3d-proton environment); the one more pass isrefused_record_hashes_parse.e4705c1(before the rebase and the two fixes): RTX 3070 smoke pair and the parser test by razormontana;cargo test -p xcl --liball passed on an RTX 3060 Ti by DavidM1911.compute_container) on our Linux tree (main68a284a+ D3D12.X: run sparse::readback_after_execute asynchronously per queue #1732, XG: fix CopyFromSubresource 7-argument ABI and guard destination span #684, Recompiler: direct DXIL gives every loop head and block one back edge #1860, Recompiler: split wave64 compute groups of several waves across dispatches #2097, D3D12.X: an ExecuteIndirect of a split program runs its pieces #2404),XCL_REFUSE_CS=95cc13288a27a96e:compute PSO of record 95cc13288a27a96e (2420644 B DXIL) refused by XCL_REFUSE_CSat 96.6 s / 99.3 s in two runs, no driver compile of it started, and one of the runs presented to 278 s (the intro cutscene with its subtitles and credits) before the machine's memory stopped it. This commit itself was not run that far (see the regression run).Regression run
Both through
scripts/smoke.ps1with Linux PowerShell, the-Xclbeing a wrapper that runs the builtxcl.exeunder Proton's Wine (XCL_DIRECT_DXIL=1 XCL_PSO_PRELOAD=0 XCL_LATE_RELEASE=0, same for both). Both runs end the same way at about 2.5 s, in the title's own assert atgame_scarlett_master.exe+0x2478b7b: the known stop of plainmainunder Wine without #871. So on this machine the regression run covers only start-up; razormontana's Windows pair above is on the previous head. I am keeping this a draft until there is a Windows pair on this head.Not tested
xcllib suite, under Wine).translated_compute_pso_once.AI use