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. |
|
@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. |
|
@KDenKC, a run-time confirmation of your point 1 (7181939073) on
Setup
Not tested: AI use: Claude Code (Claude Opus 5.5) built the trees, made the local change, ran the runs on my machine, read the logs and wrote this. |
luckyteagirl
left a comment
There was a problem hiding this comment.
At exact head 8ed5a0a on current main b49be18, a UTF-8 BOM in the new XCL_REFUSE_CS=@path file silently drops its first hash. This is a source-derived review; I did not run a title with a BOM-marked list.
read_to_string(path) passes the leading U+FEFF through to record_hashes. That parser splits on commas or Unicode whitespace, then parses each token as hex; U+FEFF is neither a delimiter nor a hex digit. For example, a file with bytes EF BB BF followed by 95cc13288a27a96e\r\n yields no hashes. With a one-entry list, the documented refusal therefore does nothing; with a longer list, the first entry is lost unless a header/comment happens to absorb the BOM.
Could the @path loader strip one leading U+FEFF before parsing? A BOM plus one valid hash in the parser/file fixture would cover the fail-open case.
AI assistance: GPT-6.2 Sol found the input path; GPT-6.2 Astra checked the exact-head parser and drafted this review.
|
A Windows + NVIDIA data point for this switch. With Setup
Without the switch (
With
What this does and does not show
AI use: Claude Code (Claude Opus 5.5) ran the builds and runs on my machine, read the logs and wrote this comment. Logs stay local. |
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. A leading UTF-8 byte order mark (a list saved by Windows PowerShell 5) is skipped, so the first hash is not lost. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
New head
Tested (RX 7900 XT, RADV, Linux, Proton-CachyOS Wine; Windows MSVC test binary under Wine): whole One thing still missing before this can leave draft: a Windows AI use: Claude Code (Claude Opus 5.5) made the fix, ran the tests and wrote this reply. |
…rt upstream xcl-dev#2527) (cherry picked from commit d60f2cc7a3674e1232ba2ea4b059b8bfe21675bb)
|
@GreemSC, the Windows pair for Regression run
This PR,
With the list (
Tested
Not tested: AI use: Claude Code (Claude Opus 5.5) built the commits, ran the suite and the runs on my machine, read the logs and wrote this. |
|
@jennydeth thank you, that is exactly what was missing. I've put your pair under Regression run (credited and linked) and your suite counts and list run under Tested, and I'm marking the PR ready for review. AI use: Claude Code (Claude Opus 5.5). |
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, a leading UTF-8 byte order mark skipped; 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, a file with a UTF-8 BOM: luckyteagirl's review; it fails without the BOM skip).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 head22578b31244 passed, 65 failed, 27 ignored, 7 SKIPPED;mainb49be18on the same machine: 1243 passed, 65 failed, 27 ignored, 7 SKIPPED. 64 of the 65 failures are the same tests on both (Wine / vkd3d-proton environment); the other differs (gpu_qsad_and_mqsadhere,gpu_sdwa_f16_inline_constantsonmain), and both pass run alone. The one more pass isrefused_record_hashes_parse.cargo test --workspace --release --no-fail-fast -- --test-threads=4: 1436 passed, 0 failed, 47 ignored; 29 SKIPPED (21 no wave64, 3 per-lane form refused, 3 no debug layer, 1 no heap windows, 1 driver cache). WithXCL_REFUSE_CS=@list(the 1,000CS_RaytracingResolverecords, a#comment line first),XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1, 900 s: 320 distinct listed records refused, no logged driver compile of a listed one, no device removal (two same-dayb49be18runs with the same switches and no list sent 181 / 183 listed records to the driver and lost the device at 211 / 216 s; different commits, so this does not show that the list keeps the device).e4705c1;cargo test -p xcl --liball passed on an RTX 3060 Ti by DavidM1911; jennydeth (RTX 3060) with the check moved to where this head has it: 280–289 listed records refused, none reached the driver, two 900 s runs kept the device; NWProgramming00 (RTX 5070 Ti) with the same placement on an oldermain:XCL_REFUSE_CS=95cc13288a27a96etakes the title past world entry, where every run without it hung the GPU.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
Windows, RTX 3060 12 GB, run by @jennydeth on this head (her comment; retail title,
scripts/smoke.ps1, default settings, no list, 600 s):93 % of
main's frames, 101 % of its peak commit, no removal and no crash. With no list set these runs cover start-up withload_refused_cs()and the default path, not the refusal; neither reaches the world (presents stop at 108.5 s onmain, 100.4 s here, while big compute programs compile). On Linux under Wine the same pair stops at ~2.5 s on both commits (plainmainwithout the Wine stack), so it covers only start-up there.Not tested
b49be18); a regression run that gets past start-up on Linux; the BOM case in a run (the parser test covers it).translated_compute_pso_once.AI use