D3D12.X: XCL_PSO_MANIFEST=1 writes the order a run asks for its pipelines (#2088) #2086
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2096"
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?
Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-25T03:53:03Z.
XCL_PSO_MANIFEST=1writes the order in which a run asks for its pipelines, as it goes, topso-manifest.txtbesideused-pipelines.txt. It records which pipelines a title needs before each point of its start, in the order it needs them, and which ones it had to wait for. That is the input #2088's milestone precompile needs, and it is workstream 1's first part, as claimed there. Recording only, off by default: nothing is built, ordered or skipped differently. Part of #2088.The file is new each run, one tab-separated event a line, numbered in file order, with milliseconds since the first event:
use: a pipeline's first use (pso_async'snote_use, the same point that feedsused-pipelines.txt), its shader-set key, compute or graphics, andready/cold(built by then or not);build: each driver compile (driver_compile_identified): kind, DXIL bytes, the console record's hash and whether a driver blob was supplied, time in the driver, and time waiting for a compile slot;present: the title's presents at milestones (1, 2, 4 … 1024, then every 1024th), so a manifest shows where presents stop and whether they come back.What is in it
crates/xcl/src/hle/d3d12x/pso_manifest.rs(new): the switch, the line format, the file, and three unit tests (the line layout against the header, the present milestones, the order of a first use against a concurrent bind).pso_async.rs: auseevent inPending::note_use, throughpso_manifest::note_first: the line is written under the manifest's lock before the pipeline is marked used, so a second bind of it and anything recorded after come later in the file (found in review by @ettehn; testa_second_bind_comes_after_the_first_use_line, which fails with the old order).real.rs: abuildevent indriver_compile_identified.present.rs: apresentevent at the milestones.mod.rs: the module.Tested
main623d02e4(head6540f86e):cargo test --workspace --no-fail-fast -- --test-threads=4(debug): 1427 passed, 34 failed, 47 ignored. All 34 failures weregpu::recomp::tests::gpu_*(code this PR does not touch); rerun alone,cargo test -p xcl --lib gpu::recomp::tests:: -- --test-threads=4: 167 passed, 0 failed, 17 ignored. So I read them as the GPU being busy with something else during the full run, not as a result of this change.cargo test --workspace --no-fail-fast -- --test-threads=4(debug) on3b84de8: 1156 passed, 1 failed, 46 ignored. The failure ishle::kernelx::tests::xmem_virtual_query_marks_cpu_readable_memory, which fails the same way onmain. SKIPPED (no wave64 / no dxil.dll / per-lane refusals on this adapter):ir_text_assembles_signs_and_runs,a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu,coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu,cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu,the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu,a_per_lane_2d_or_3d_group_runs_on_the_gpu,const_and_null_mask_operands_agree_with_hlsl_on_the_gpu,f16_programs_on_the_gpu,f32_programs_on_the_gpu,f64_programs_on_the_gpu,integer_programs_on_the_gpu,mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu,gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware,heap_window_out_of_memory_falls_back_to_the_switch_form.XCL_PSO_MANIFEST=1 XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_PSO_PRELOAD=0, release, 150 s, A pressed every 4 s. XCL's DXIL cache and the NVIDIA cache were warm from earlier runs; the driver-blob column says which builds got a blob. The run wrote 1 030 lines: 511 first uses (510 cold, as expected with lazy pipelines and no preload), 508 driver builds, and presents up to the 1024th at 36.5 s. 12 pipelines were first used before that present; the other ~500 came after it, in the world load, where presents stop before the 2048th. No crash, no device removal.Regression run
scripts/smoke.ps1 -Game <title folder>, 60 s, release, default settings (XCL_PSO_MANIFESTunset), A pressed every 4 s from 20 s:main:
this PR:
Not tested
XCL_LAZY_PSO=0: reviewers measured that a compute pipeline built at creation gets abuildrecord but nouserecord (@itsSio, @ettehn onbb4dea4). With the default lazy pipelines theuserecord is there. A manifest captured withXCL_LAZY_PSO=0is incomplete.AI use
🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by anes66 on 2026-11-25T05:10:04Z.
CPU-only file-writer verification on exact head
5ffbb5ec8b5b4b475c603a3c14da1ed5d3847b9dpassed. Optional test companion d098ec2 is directly on that head and adds one integration test only.The unit-test build intentionally disables file creation, so this test compiles the unchanged
pso_manifest.rsinto a small non-test executable. Only cache-directory lookup and logging are supplied by the harness; the recorder, formatting, environment switch, file I/O and synchronization come from the real module. No GPU or title is involved.Tested
0/trueleave a missing cache directory untouched;1and whitespace-padded1each record 1,024 mixed events from eight synchronized threads; an unset process preserves an existing file; a fresh enabled process replaces that file and restarts sequence numbering; an invalid destination remains intact and the recorder returns without crashing.cargo test --locked -p xcl --test pso_manifest_processes -j 2 -- --nocapture --test-threads=1: 1 passed, 0 failed, 0 ignored, 0 skips.cargo test --locked -p xcl --lib hle::d3d12x::pso_manifest::tests:: -j 2 -- --nocapture --test-threads=1: 2 passed, 0 failed, 0 ignored, 0 skips.Not tested
Actual
note_use/ driver / present call sites, first-use deduplication, correlation across event types, real cache-directory selection, GPU execution, retail milestones, release, full workspace suite, or performance. The test validates the recorder's file contract; it does not establish a startup speedup or first playable frame. No competing runtime PR.AI use
Codex (GPT-6; exact variant unavailable) wrote the test and temporary negative controls, ran CPU verification and prepared this report.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T05:43:43Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
Imported from ivall/xcl. Originally posted by JoaoPauluu on 2026-11-25T05:47:37Z.
A regression run under Wine on Linux on the retail title: no device removal, no crash, frames level with
main(1353 here; 1360 and 1374 on the twomainruns). This PR's run is withXCL_PSO_MANIFEST=1; the two new tests pass under Wine.With
XCL_PSO_MANIFEST=1the run loggedpipeline requests are written to C:\users\steamuser\AppData\Local\xcl\dxil\pso-manifest.txtat 3.9 s and wrote 245 events after the header:build: 227graphicswithcold, 1 with a driverblob. Theirdriver_mssum to 17 ms andwaited_msto 0. I have not checked why the driver times are this low under vkd3d-proton. Three record hashes account for 222 of the builds (102, 102 and 18).use: 5graphics ready, 1compute ready.present, up topresent 1024at 45120 ms.So this run has 6 first uses against 228 builds. Your run had 511 first uses. I have not checked whether the gap is expected, for example because builds that go through the stand-in path have no
useevent.Tested
x86_64-pc-windows-gnu.5ffbb5eas it is (based oncbc296a) andmain6020a33, no uncommitted changes. Retail title 1.0.2.1,scripts/linux/smoke.sh(#257) for 60 s, no input. Runs in order: main, this PR (with other PRs in between), main. The new lib tests ran under Wine, one test per process.Regression run
main (first run):
this PR:
The second
mainrun: 1374 frames,exit: 0x0, no device removal, no crash. Under Wine,peak commitreads 0 MB, so these blocks do not check memory.Not tested
XCL_DIRECT_DXIL=1, a cold driver cache, native Windows.AI use
Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-25T06:02:56Z.
Independent native Windows check of exact PR head
5ffbb5ec8b5b4b475c603a3c14da1ed5d3847b9dagainstmain6020a33b16ba2de25b3aef5947552f2dc1831f09.Hardware/toolchain: Windows 11 build 26200, Ryzen 9 5980HX, Radeon RX 6800M driver
30.0.13002.13003, Rust 1.99.0 MSVC, DXC/DXIL 1.9.2609.5.Tested
cargo test --locked -p xcl --lib -j 2 pso_manifest::tests -- --test-threads=1 --show-output: 2 passed, 0 failed, 0 ignored on the exact PR head.cargo build --locked --workspace --release -j 2: passed.XCL_PSO_MANIFEST=1was set on the PR run only. Both completed without the guard firing:The PR created
pso-manifest.txtin the isolated DXIL cache. It contained the v1 header and exactly one event,0\t0\tpresent\t1, consistent with the one shown frame.used-pipelines.txtwas empty. This short run did not reach a pipelineuseorbuildevent, a world-loading milestone, or a meaningful performance comparison. It checks the enabled recorder's startup, file location, and first-present event on this AMD setup; the two unit tests check line formatting and milestone selection.No game data was uploaded. AI-assisted testing and report drafting with OpenAI Codex (GPT-6); I checked the exact revisions and local logs before posting.
Imported from ivall/xcl. Originally posted by ettehn on 2026-11-25T07:14:43Z.
CPU-only A/B for two binds of the same pending pipeline. On Windows 11 25H2 (26200.9974), Ryzen 9 8945HX and rustc 1.97.1 MSVC, I compiled the actual
Pending::note_usebody from5ffbb5e, the real manifest writer, and thecompute_prefixparser from #2104 in a small harness. It pauses the first bind insideused::note, then lets a second thread bind the same pending pipeline and emitPresent(1)before releasing the first thread. The harness controls thread scheduling and writes to an isolated directory.5ffbb5e, 20/20: the file hadpresentthenuse. The parser selected[]through present 1.usethenpresent. The parser selected[1]. The candidate writes the first-use event under the manifest lock before publishing theusedflag when recording is enabled.The candidate also passed the 3 manifest and 6 async-pipeline unit tests with
cargo test --locked --offline -j 2 -p xcl --lib <filter> -- --test-threads=1. This is a controlled interleaving. Frequency during retail runs and recording overhead are unmeasured. No GPU or title was used.Verification and local patch assisted by OpenAI Codex (GPT-6).
Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-25T07:27:40Z.
@ettehn thanks, you're right.
used.swap(true)published the flag before the line was written, so a second bind could go on, and a present could get into the file, ahead of the first use. Fixed in3b84de8(squashed into the PR's commit):pso_manifest::note_firstchecks the flag, writes theuseline and only then sets the flag, all under the manifest's lock.Pending::note_usegoes through it. With recording off it is the oldswap.a_second_bind_comes_after_the_first_use_line: two threads bind one pipeline at once for 200 rounds. The losing one records a present as soon as its bind returns, and the test checks that theuseline comes first and appears once.presentbeforeuse, your interleaving. That was with ayield_nowadded to widen the window, so in a real run it would be much rarer.The full suite and the smoke pair on the new head are running; I'll update the description with both.
Written with Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by Gevroska on 2026-11-25T08:14:20Z.
Could you add a sentence to the manifest docs explaining when a
buildrecord is written? As I read the patch, it’s emitted when the driver compilation returns. Until then, the absence of abuildline can mean the request is still waiting for a compile slot or the driver call is still in progress. The manifest alone can’t distinguish those cases.I ran into that ambiguity when reviewing two RTX 3080 world-loading traces captured before this PR. The ordinary logs showed three driver calls in one run and four in the other. The earliest logged call started about 12 seconds after the last shown-present interval in the first run and 11 seconds after it in the second. None of the seven logged calls spanned the point where presentation stopped. That leaves earlier unlogged work unresolved. A short note would help anyone reading a manifest that ends during a stall.
I used Codex with GPT-6.2 Sol to analyze the saved traces. A separate GPT-6.2 Sol agent independently verified the timing comparison.
Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-25T08:21:50Z.
Added in
bb4dea4, in the module docs: abuildline is written when the driver call returns, so a compile that is still waiting for a slot or still in the driver has no line yet, and a manifest that ends in a stall cannot tell those two apart. Smoke blocks in the description are rerun on the new head.(Claude Code, Claude Opus 5.5)
upstream-sync referenced this pull request2026-11-25 11:07:09 +00:00
Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T10:47:32Z.
Code review on
bb4dea4:pso_manifest::note_first_oncleanly checks and setspending.usedunder the manifest mutex so losing concurrent binds never emit apresentbefore the winninguseline (a_second_bind_comes_after_the_first_use_line).Remaining before merge: Fix
PR description,Build and testgreen, and dual-vendor verification onbb4dea4.Imported from ivall/xcl. Originally posted by itsSio on 2026-11-25T11:57:28Z.
The manifest omits the first-use event for a compute pipeline built synchronously with
XCL_LAZY_PSO=0, even when its dispatch and readback succeed. Lazy-on runs recorded that event, including a new process reusing the DXIL cache directory. This is a limitation of the tested synchronous path, not evidence that a reused DXIL cache alone drops events. #2104 selectsuserather thanbuildrecords, so these manifests should not be assumed complete for milestone precompile.Tested: Clean
bb4dea405b5a108fc1a73e0de77537ed6fd93b59, Windows 11 Pro build 26200, NVIDIA 610.88, debug MSVC:On each PC ran
cargo test -p xcl --locked -j 4 --test gpu_compute_e2e console_wave64_compute_through_the_pso_hook_dispatch_and_read_back -- --exact --nocapture --test-threads=1withXCL_PSO_MANIFEST=1,XCL_ASYNC_PSO=1, andXCL_PSO_DISK_CACHE=0. Each run was 1 passed, 0 failed, 0 ignored, 0 runtime skips. WithXCL_LAZY_PSO=1, both a fresh XCL DXIL cache and a subsequent process reusing it recorded oneuse, onebuildper PC (keyb3b2fd750cde2d8d). WithXCL_LAZY_PSO=0and a separate fresh XCL DXIL cache, each PC recorded zerouse, onebuild. The built record wasf762fc1473e87d61in all six runs. A targeted docs note aboutXCL_LAZY_PSO=0would prevent readers from treating those captures as complete.Downstream CLI check: On both machines
cargo build --workspace --locked -j 4succeeded at clean #2104 headf1810d0c362e73822e08bacf789e7422736ffafc. I appended one syntheticpresent 1event to each capture because the readback test does not present. Inxcl shaders <unrelated-synthetic-record> --precompile --pipelines --pso-manifest <capture> --through-present 1, both lazy-on captures selected the recorded key and exited 2 withunmatched compute keys (1): b3b2fd750cde2d8d, as expected for the deliberately unrelated input. The lazy-off build-only capture exited 0 withpresent 1: 0 compute pipelines in first-use orderon both PCs. This confirms the CLI behavior, not a real startup milestone or a pipeline build.Not tested: A matching #2104 precompile build,
XCL_ASYNC_PSO=0, graphics, a retail title, AMD, or the whole workspace on these heads.AI use
Ran via Samaritan:
Imported from ivall/xcl. Originally posted by ettehn on 2026-11-25T13:46:47Z.
I reproduced @itsSio’s missing compute use record on clean
bb4dea4with a synthetic dispatch/readback on Windows 11, RTX 5070 Ti Laptop (621.24), DXC 1.8.2502.11. WithXCL_ASYNC_PSO=1andXCL_LAZY_PSO=0, the readback passed but the manifest contained onebuildand zerouserecords.A local follow-up covers both paths. The eager background submission now carries the same shader key into
Pendingwhen manifest logging is enabled. The already-translated synchronous path keeps the key until first bind (or final release) and records it asready. Neither changes scheduling or which PSOs enter the lazy preload history.On the patched build, cold eager, warm eager, lazy, and async-off runs each recorded exactly one compute
useforb3b2fd750cde2d8d, with one build and correct readback. Trace-off produced no manifest. A new GPU regression also checks that synchronous creation has nouseyet, then calls the realSetPipelineStatehook twice and checks that only onereadyuse follows the build.gpu_compute_e2ereported 5 passed, 0 failed, with one explicit skip (the existing heap-window fallback test). Synthetic input only.OpenAI Codex assisted.
Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-25T17:32:27Z.
@itsSio @ettehn thank you both: two machines and a third reproduction agree, so it's confirmed. With
XCL_LAZY_PSO=0, a compute pipeline built at creation is never bound through a pending entry, so nouseline is written for it. I've added this under Not tested in the description, so nobody treats such a capture as complete.@ettehn, your follow-up covers both the eager and the already-translated synchronous path and comes with a GPU regression test. Rather than write a second version, could you open it as a PR stacked on this one (
Stacked on #2096)? Pushing it tod3d12x/pso-manifestwould also work. Either way I'll run it on the RTX 3060 and post the results there.AI use: Claude Code, Claude Opus 5.5 read the reports and wrote this reply.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T07:28:42Z.
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-26T17:11:50Z.
NVIDIA and AMD full-suite run, to go with the reports above by ettehn, itsSio, since none of them covers AMD. Tested exact head
bb4dea40(on its basecbc296a).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 1145 passed, 0 failed, 44 ignored. SKIPPED (no wave64):a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu,a_per_lane_2d_or_3d_group_runs_on_the_gpu,coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu,cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu,gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware,the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.a_second_bind_comes_after_the_first_use_line,manifest_lines_have_one_column_layout_per_event,presents_are_noted_at_milestones.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 1156 passed, 0 failed, 46 ignored. SKIPPED:f16_programs_on_the_gpu(f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipleaves out tests that fail on main8b957bectoo, not because of this PR. On NVIDIA:heap_window_out_of_memory_falls_back_to_the_switch_form(#1651), the fourgpu::recomp::lower_dxil::tests::*_programs_on_the_gputests,const_and_null_mask_operands_agree_with_hlsl_on_the_gpuandmask_ff0_and_flbit_agree_with_hlsl_on_the_gpu(follow-up on #1651) fail becauserunner::skip_testturns their skips into failures underXCL_REQUIRE_GPU=mesh, andgpu::dxil::fuzz_testsseeds 70, 545, 1019 and 1507 failCreateComputePipelineStatewithE_OUTOFMEMORYon this card (drivers 616.64 and 621.40). On AMD:fuzz_validate_and_gpu_1fails on seed 540 (res[833]0x7 vs CPU 0x6). The AMD run does not setXCL_REQUIRE_GPU.Not tested
AI use
Imported from ivall/xcl. Originally posted by oni-swr on 2026-11-26T19:49:16Z.
Independent AMD report for
bb4dea405b5a108fc1a73e0de77537ed6fd93b59.Tested
XCL_ADAPTERunset), Ryzen 7 5700X3D, 64 GB, Windows 11 build 26200, rustc 1.100.0, debug profile for tests / release forxcl.exe, DXC from the Windows SDK. Exact PR head in a clean detached checkout (not merged ontomain), own target directory per checkout;mainwas8b957bec, merge-base below. Merge-base:cbc296ab65a2661a61e3e2da109134bcd5319f60.cargo test --workspace --no-fail-fast -j 4 -- --test-threads=4 --nocapture: 1156 passed, 1 failed, 46 ignored. The one failure isgpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1(seed 722:res[30] = 0x1, CPU 0x7fffffff); it fails identically onmain6d12f58aon this adapter (cargo test -p xcl --lib fuzz_validate_and_gpu_1), so it is not caused by this PR.e2efailures from my setup (the test title was not built next to the e2e binary); aftercargo build --workspacethee2etest passed (cargo test -p xcl --test e2e), counts below include that rerun.f16_programs_on_the_gpu/f32_programs_on_the_gpuper-lane cases refused forV_MUL_F16,V_PK_MUL_F16orV_CVT_F16_F32, andheap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).pso_manifest::tests(manifest_lines_have_one_column_layout_per_event,presents_are_noted_at_milestones,a_second_bind_comes_after_the_first_use_line) passed. The retail runs were made withoutXCL_PSO_MANIFEST=1, so the manifest writer itself was not exercised on the title.Regression run (
scripts/smoke.ps1 -Seconds 60 -Title retail-title, one 60 s run each, same retail title, built from the merge-base and from this head)No device removal, no crash; 1375 frames vs 1436 on the merge-base (95.7 %), peak commit 17368 MB vs 18193 MB.
Not tested
XCL_ADAPTERoverrides, any title other than the one retail title. No game data was committed or posted.AI use
Claude Code (Claude Sonnet 5.5) ran the tests and drafted this report. No game files, dumps, shader names or retail hashes are included; the title in the
xcl-smokeblocks is replaced withretail-title.Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T09:17:23Z.
Independent desktop NVIDIA verification of PR #2096 at head
bb4dea405b5a108fc1a73e0de77537ed6fd93b59(1commit; exact parent & merge-base:cbc296ab65a2661a61e3e2da109134bcd5319f60, pre-#2555ancestor ofmain).Environment
7956 MiBreported by D3D12), driver32.0.16.2114(NVIDIA621.14, WDDM 3.2)31.9 GiBusable), Windows 11 Home26200(Developer Mode off)rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC, DXC1.9.2609.5,--releaseTargeted release tests & build (
bb4dea40)cargo test --release -p xcl --lib hle::d3d12x::pso_manifest:: -- --test-threads=1 --nocapture(3 consecutive runs)3 passed; 0 failed; 0 ignored; 1124 filtered out× 3 (0.04s× 3,0skipped:a_second_bind_comes_after_the_first_use_line,manifest_lines_have_one_column_layout_per_event,presents_are_noted_at_milestones)cargo test --release -p xcl --lib hle::d3d12x::pso_async:: -- --test-threads=1(3 consecutive runs)6 passed; 0 failed; 0 ignored; 1121 filtered out× 3 (0.61s× 3,0skipped)cargo build --release -p xcl1m 25s, exit0,0new warnings)Paired quiet 60 s retail smoke (
title: 29640639)Exact parent & merge-base (
cbc296ab65a2661a61e3e2da109134bcd5319f60, cached baseline on the same machine):PR #2096 (
bb4dea405b5a108fc1a73e0de77537ed6fd93b59, default flags —XCL_PSO_MANIFESTunset):PR #2096 (
bb4dea405b5a108fc1a73e0de77537ed6fd93b59, opt-inXCL_PSO_MANIFEST=1):Live
pso-manifest.txtcapture (XCL_PSO_MANIFEST=1)pso-manifest.txtcleanly (13292bytes,246lines total:1# xcl pso manifest v1:header line +245monotonic tab-separated event linesseq 0..244):6useevents (6ready,0cold)228buildevents11presentmilestone events (1,2,4,8,16,32,64,128,256,512,1024, spanning1183 msto38908 ms).Limits of coverage
XCL_PSO_MANIFESTunset) and opt-in (XCL_PSO_MANIFEST=1) paths were directly exercised via unit tests (3/3+6/6× 3) and paired 60 s retail smokes (0device removals,0crashes, steady60 60 60presents), confirming livepso-manifest.txtemission ontitle: 29640639.6ready,0colduselines),coldfirst-use recording under a completely cold driver/DXIL cache was not separately triggered in the retail smoke (covered bypso_manifest::tests).AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-27T10:12:35Z.
Independent native Windows smoke check of PR #2096 at head
bb4dea4against currentmain623d02e: the first pair finished without a crash or device removal, but the PR head showed 839/1,182 frames (71.0%). A repeat gave 862/1,356 (63.6%). Both are below the 80% regression-run threshold. Peak commit was 15,215/15,558 MB in the first pair and 15,205/14,991 MB in the repeat, within the 125% limit.Both were clean release builds (
cargo build --release --offline --locked -j 4 -p xcl --bin xcl), followed byscripts/smoke.ps1 -Seconds 60on the same locally owned title, RTX 3080 Ti, with no input. The script generated these first-pair blocks:main:
this PR:
This does not isolate a slowdown caused by the manifest change. The PR head is 336 main commits behind. I set
XCL_PREPARE=0on both runs, but main now implements that switch, while this head predates it, so the two builds take different startup paths. The repeat used the same settings and remained below the frame threshold. Bringing the branch onto current main and regenerating both smoke blocks with matching effective startup behavior is needed before these results can establish merge readiness. The PR description's existing blocks also lacktitle:lines, which is why its current PR-description check fails.Not tested: interactive menu/world load, manifest enabled, AMD, or the rebased change. No title data or diagnostics are attached. AI use: Codex (GPT-6.2 Sol) built both commits, ran the checks, and drafted this report.
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-27T12:25:44Z.
Tested
Clean detached PR #2096 head
6540f86e3eon native Windows 11 25H2 (26200.9974), Intel Arc A770 (16,258 MiB reported, driver 32.0.101.9175), Ryzen 7 3800X, 48 GiB RAM, Rust 1.100.0 x86_64-pc-windows-msvc, DXC/DXIL 1.9.2602.17, unoptimized test profile.cargo test --locked --offline -p xcl -j 2 --lib pso_manifest::tests:: -- --test-threads=1 --nocaptureoutside the GPU lock gave 3 passed, 0 failed, 0 ignored, 0 skips.cargo test --locked --offline -p xcl -j 2 --test gpu_compute_e2e --no-run --message-format=json. Ran its executable under the Arc A770 lock withconsole_wave64_compute_through_the_pso_hook_dispatch_and_read_back --exact --nocapture --test-threads=1and measured 1 passed, 0 failed, 0 ignored, 0 skips, exit 0.lazy_compute_use_precedes_present_x --exact --nocapture --test-threads=1under that lock. TwoSetPipelineStaterequests for the same pending PSO emitted exactly one compute first-use row before explicit resolution. The translated shader's readback matched all 1,536 expected dwords across 768 threads. The raw manifest had sequence 0use b3b2fd750cde2d8d compute cold, then sequence 1build compute 6168 f762fc1473e87d61 cold. The scratch test then called the production PresentX handler. It reached one boundary and zero shown frames afterCreateSwapChainForHwndreturned0x887A0022in Windows service session 0. The manifest had zero present rows. Scratch result 0 passed, 1 failed, 0 ignored, 0 skips, exit 101 at the shown-frame assertion.XCL_ADAPTER=A770 XCL_PSO_MANIFEST=1 XCL_PSO_DISK_CACHE=0, default lazy and async settings, and fresh separate XCL cache and data directories. The runtime identified the A770 in both. Executable SHA-256 values matched before, under and after the lock. Implicit Intel driver cache state was uncontrolled.Not tested
Successful PresentX milestone ordering, retail smoke, full workspace suite, synchronous compute, Wine, or the #2104 consumer. A driver build row is emitted at return. The manifest cannot distinguish an unfinished driver call from a build still waiting for a compile slot. A PresentX call alone does not establish a shown-frame milestone.
AI use
Codex in T3 Code (gpt-6.2-sol, high reasoning effort) wrote the external scratch adaptation and ran and documented the scoped verification.
Imported from ivall/xcl. Originally posted by oni-swr on 2026-11-27T13:22:46Z.
Running a native Windows AMD check of head
6540f86e(RX 7800 XT, RDNA3, native wave64): workspace tests plus a bounded base-vs-head smoke pair; report here in a few hours.AI use: the run and the report are done with Claude Code (Claude Sonnet 5.5).
Imported from ivall/xcl. Originally posted by oni-swr on 2026-11-27T14:14:50Z.
AMD RDNA3 report for #2096, head
6540f86e(base = merge-base623d02e4)Hardware / software: AMD Radeon RX 7800 XT (RDNA3, native wave64), driver 32.0.31035.1003; Ryzen 7 5700X3D, 64 GB; Windows 11 build 26200; Rust 1.100.0 (stable-x86_64-pc-windows-msvc); tests debug, smoke release. Native Windows, no Wine,
XCL_ADAPTERunset.What changed vs my earlier report on
bb4dea40: the PR's patch is the same (the changed lines ofbb4dea40^..bb4dea40and6540f86e^..6540f86eare identical); the head was only rebased, fromcbc296abonto623d02e4. This is a fresh run on the new head, not a carry-over.Tested
cargo test -p xcl --lib -- --test-threads=4on the head: 1332 passed, 1 failed, 27 ignored; 6 GPU casesSKIPPED(f16/f32 conversion programs, "refused"). The failure isgpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1(seed 722), which also fails on an older main commit (b49be183), so it is not from this PR.cargo test -p xcl --lib pso_manifest: 3 passed.XCL_PSO_MANIFEST=1, 40 s run of the head: exit 0x0, 736 frames, no device removal;pso-manifest.txtwas written with the header and 1470 lines (1453build, 7use, 10present).Regression run (
scripts/smoke.ps1, 90 s, retail title, same title and isolated data copy,XCL_NETWORK=0,XCL_PREPARE=0; manifest off)623d02e46540f86eHead is 96.5 % of base's frames, 99.9 % of its peak commit. One run each.
Not tested
cargo test --workspace; a long manifest run (world load); manifest ordering against a cold cache.AI use
🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-27T14:30:17Z.
Independent RTX 3080 Ti recheck of #2096 head
6540f86eagainst current main06f90c19. The current head did not reproduce the frame shortfall in my earlier run onbb4dea40on this machine.Tested: Windows 11 build 26300, RTX 3080 Ti / driver 621.35, Ryzen 7 9800X3D, rustc 1.99.1 MSVC, debug tests and clean release binaries.
cargo build --workspacepassed.cargo test --workspace --no-fail-fast -- --test-threads=4on the exact PR head: 1,461 passed, 0 failed, 47 ignored. There were 25 GPU skip notices: 21 no-wave64 cases, three unsupported per-lane instruction cases, and one opt-in heap-window case. Both clean checkouts built withcargo build --release --offline --locked -j 4 -p xcl --bin xcl.Two same-title, 60-second
scripts/smoke.ps1pairs used the same retained shader cache and settings:XCL_PSO_MANIFEST=1,XCL_DIRECT_DXIL=1,XCL_HEAP_WINDOWS=1,XCL_PSO_PRELOAD=0, andXCL_PREPARE=0. The last setting leaves automatic shader preparation out and lets the title request pipelines as it runs. The first pair showed 1,391 main / 1,419 PR frames (102.0%); the warm repeat showed 1,405 / 1,413 (100.6%). Peak commit was 14,942 / 14,978 MB and 14,978 / 14,971 MB, respectively. All four runs exited normally with zero crashes and device removals, and each ended at 60/60/60 presents per 2 seconds. A process-tree commit cap and system-headroom guard stayed inactive. The latest PR run wrote 23 sequential manifest events: six first uses, six builds and 11 present milestones through the 1,024th present.Not tested: Input beyond the initial menu, world loading, automatic full shader preparation, and AMD/Intel. These paired runs establish the required smoke thresholds for this phase on this NVIDIA setup; they do not measure gameplay pacing.
Script-generated blocks from the warm main/head pair
main:
PR head:
AI use: Codex (GPT-6.2 Sol) ran the builds, tests and guarded smoke pairs, checked the counters, and drafted this report.
Imported from ivall/xcl. Originally posted by ClosetPie107 on 2026-11-27T16:12:32Z.
Tested on AMD / Linux:
6540f86e(RX 9070 16 GB, RDNA4, Mesa 26.3.1 RADV; Ryzen 5 9600X, 32 GB; CachyOS; Proton Experimentalexperimental-11.0-20261112with vkd3d-proton masterec207194plus a local patch dropping thelpVtblchecks of command allocators and lists; DXC 1.9.2609.5; Rust 1.96.0,x86_64-pc-windows-gnudebug build, tests run under Wine)The head as it is (base
623d02e4), withmainf9a0cb80the same session as the baseline.Tests (
XCL_REQUIRE_GPU=wave64)cargo test -p xcl --lib -- hle::d3d12x::pso_manifest:: --test-threads=1: 3 passed, 0 failed, 0 ignored.cargo test -p xcl --lib -- hle::d3d12x::pso_async:: --test-threads=1: 14 passed, 0 failed, 0 ignored.cargo test --workspace --no-fail-fast -- --test-threads=4with--skip compositor_blends_ui_plane_over_scene_plane --skip failed_restore_stops_before_importing_an_unbacked_window --skip grooming_leaves_a_window_under_1_gib_only_its_hole(here the first loses the RADV device, the other two run out of memory under Wine): lib 1321 passed, 9 failed, 27 ignored;mainf9a0cb80lib (--test-threads=1, same skips): 1323 passed, 9 failed, 27 ignored. All failures but one are amongmain's. The other,flush_parked_does_not_free_or_reuse_tiles_while_unmap_is_in_flight, is flaky under load here: run alone 3 times it passed every time on this head and onmain. The other binaries fail the same 3 tests as onmain(e2e,pls_quota,predication_e2e).d3d12_resource_and_sync: its fence and queue test ended the process here, as it does onmainand most other trees in this setup.Not tested
XCL_PSO_MANIFEST=1(the manifest file itself was not checked)AI use
Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-27T18:14:02Z.
A data point for what this manifest is for, from a 12 GB card (details on #2595). On
main6089122a, the retail title stops presenting at ~188 s. A title thread then builds 28 huge graphics pipelines one at a time, 4–7 s each, with no driver blob and none of them covered by the offline preparation. With the blobs on disk from that run, the same build presents to the end. Those 28 are thegraphics … coldbuilds with largedriver_msthat this manifest writes down, in the order the run asked for them, so a later preparation can build them before the title waits on them.AI use: Claude Code (Claude Opus 5.5) ran the title, read the logs and wrote this note.
Imported from ivall/xcl. Originally posted by throny on 2026-11-30T20:18:41Z.
Closing:
main'spso_manifest.rs(59cd71e6, #3175) covers what this adds (use/build/present events, plus a recipe column). Checked against currentmain(ff0c364b), hunk by hunk. If something here is still missing onmain, say so and reopen it, or ask and I will.AI use: Claude Code (Claude Opus 5.5) checked this; part of the duplicate sweep on #3041.
Pull request closed