Skip to content

D3D12.X: the per-draw mirror sync copies without asking readable() - #2437

Open
KOLESNiii wants to merge 2 commits into
xcl-dev:mainfrom
KOLESNiii:d3d12x-mirror-sync-no-readable
Open

KOLESNiii wants to merge 2 commits into
xcl-dev:mainfrom
KOLESNiii:d3d12x-mirror-sync-no-readable

Conversation

@KOLESNiii

@KOLESNiii KOLESNiii commented Nov 25, 2026 •

Copy link
Copy Markdown

Stacked on #2416; only the top commit (D3D12.X: the per-draw mirror sync copies without asking readable()) belongs here.

sync_title_buffers checked every copy's source, and the indices it scans, with gpu::shader::readable. For a range with a page that is not resident, or over 16 pages, that walks the region with VirtualQuery; the measurement on #2389 saw single calls take 1.1–8.8 ms on the render thread inside a draw. The copy now uses title_textures::copy_committed_region (ReadProcessMemory, which cannot fault), and the indices are scanned from the index buffer's mirror once copied there.

Fixes #2392. Part of #2389.

This differs from the proposal in #2392 (check once per mirror, again after kernelx frees or reprotects memory): kernelx does not see HeapFree, which releases large heap blocks inside ntdll, so that design still needed a copy that cannot fault, and with one the check had nothing left to protect. No kernelx change.

What is in it

  • crates/xcl/src/hle/d3d12x/list_x.rs: the copy goes through copy_committed_region; a page the title freed or protected since keeps what the mirror had (before, readable failed and none of the range was copied). Indices are read from the mirror; an index buffer without a mirror is still checked with readable. Two tests: the_mirror_sync_copies_around_a_page_the_title_made_unreadable, and the_mirror_sync_copies_whole_buffers_around_a_page_the_title_made_unreadable for the other paths with a vertex page made unreadable (an index buffer without a mirror giving the vertex range, a draw with instances, an unreadable index buffer without a mirror: both copy the whole buffer around the page).
  • crates/xcl/src/hle/d3d12x/title_textures.rs: copy_committed_region is pub(super).

Tested

Regression run

main:

xcl-smoke v1
commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea
gpu: NVIDIA GeForce RTX 2070 SUPER
title: retail game
seconds: 60
exit: 0x0
frames shown: 1415 (PresentX 1415)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15388 MB

This PR:

xcl-smoke v1
commit: e4269721c2795213b996c09ce0b90daf4c461287
gpu: NVIDIA GeForce RTX 2070 SUPER
title: retail game
seconds: 60
exit: 0x0
frames shown: 1478 (PresentX 1478)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16287 MB

Not tested

  • In a title: a draw whose source is actually unreadable, instanced or whole-buffer copies, and an index buffer without a mirror (none in these menus; only in the unit tests).
  • The game's world; AMD and Intel GPUs, wave64.

AI use

  • Claude Code with Claude Opus 5.5: wrote the code, the test, the commit message and this description, and ran the tests and the runs.

🤖 Generated with Claude Code

raylitebull added a commit that referenced this pull request Nov 25, 2026
Port upstream PR #2437 (by KOLESNiii, commit bb9bea2) onto amd-dev.

sync_title_buffers checked every copy's source and scanned indices with gpu::shader::readable. For a range with a non-resident page or over 16 pages, that walked the region with VirtualQuery, stalling the render thread for 1.1-8.8 ms inside draws (#2389 / #2392).

Use title_textures::copy_committed_region (ReadProcessMemory, which cannot fault) so freed or protected pages keep what the mirror already holds, and scan indices from the index buffer's mirror once copied (keeping readable() only when an index buffer has no mirror). Includes regression test.

Fixes #2392. Part of #2389.

Assisted-by: Antigravity (Gemini 4 Neon High)
gustavsi added a commit to gustavsi/xcl that referenced this pull request Nov 25, 2026
…#2414, xcl-dev#2415

Integrates per-draw mirror sync fast path (xcl-dev#2437), PresentX compositor
hardening (xcl-dev#2418), XAudio2 GetState buffer context fix (xcl-dev#2410), and Wine
test fixes (xcl-dev#2414, xcl-dev#2415).

Assisted-by: Antigravity (Gemini 4 Neon)
@SlopTart

Copy link
Copy Markdown

gpu_ suite (cold cache): 160 passed / 4 failed, no crashes. Three are the known baseline trio on this lane; the fourth is gpu_promoted_uav_clear_values_pass_create_committed_resource, newly red on main since #2280 (report), unrelated to this PR.
Targeted run of the_mirror_sync_copies_around_a_page_the_title_made_unreadable: passed.

@DavidM1911

Copy link
Copy Markdown
Contributor

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

Thanks!

@KOLESNiii
KOLESNiii marked this pull request as ready for review November 25, 2026 19:57
gustavsi added a commit to gustavsi/xcl that referenced this pull request Nov 25, 2026
…#2414, xcl-dev#2415

Integrates per-draw mirror sync fast path (xcl-dev#2437), PresentX compositor
hardening (xcl-dev#2418), XAudio2 GetState buffer context fix (xcl-dev#2410), and Wine
test fixes (xcl-dev#2414, xcl-dev#2415).

Assisted-by: Antigravity (Gemini 4 Neon)

@bmjask bmjask left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No concrete source-level defect found. copy_committed_region preserves prior mirror bytes for inaccessible pages while copying surrounding committed data, and mirrored-index range selection matches what the GPU draws; the focused test is useful. Merge evidence is incomplete: no current Windows build/test, and title validation did not exercise inaccessible sources, whole-buffer copies, instancing, or unmirrored indices. The XCL_ACTIVITY overhead is inherited from stacked #2416 and should be addressed there.

@emirduran707

Copy link
Copy Markdown
Contributor

Independent AMD RDNA4 (native wave64) test report on exact head bb9bea21b5ab3520e4f8cfa1ffe5f4afd988efeb (clean detached checkout, no local changes).

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64, driver 32.0.31044.16), Ryzen 5 5600, 32 GB RAM, Windows 11 Pro 26300, Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17; tests debug, smoke release.
  • cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4: 1274 passed, 2 failed, 46 ignored; 8 SKIPPED (6 in lower_dxil::tests::{f16,f32}_programs_on_the_gpu refused by per-lane form; heap_window_out_of_memory_falls_back_to_the_switch_form; pso_measurement_compiles_an_exact_synthetic_record). All native wave64 GPU tests ran and passed.
    • The PR's test passed: hle::d3d12x::list_x::tests::the_mirror_sync_copies_around_a_page_the_title_made_unreadable.
    • The 2 failures (gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 seed 722 and fuzz_validate_and_gpu_3 seed 1599) are pre-existing on unmodified main on this GPU.

Regression run (60 s retail-title smoke, XCL_NETWORK=0, release)

xcl-smoke v1
commit: bb9bea21b5ab3520e4f8cfa1ffe5f4afd988efeb
gpu: AMD Radeon RX 9060 XT
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1619 (PresentX 1619)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 13966 MB

(Matched main 68a284a baseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.)

Not tested

  • D3D12 debug layer; Intel GPUs.

AI use

  • Antigravity with Gemini 4 Neon ran the build, test suite, and smoke run and drafted this report.

@KOLESNiii

Copy link
Copy Markdown
Author

Thanks. On the three points:

  • XCL_ACTIVITY overhead: fixed in D3D12.X: XCL_ACTIVITY counts and times the per-draw buffer mirror sync #2416 (the counters are off until host_main enables them for XCL_ACTIVITY). This PR is rebased onto it; head is now c24fbbf, on D3D12.X: XCL_ACTIVITY counts and times the per-draw buffer mirror sync #2416's fdbb6fe.
  • Paths the title runs did not reach: new unit test the_mirror_sync_copies_whole_buffers_around_a_page_the_title_made_unreadable. With a vertex page made unreadable it checks three things: an index buffer without a mirror gives the vertex range when it is readable; a draw with instances copies the whole buffer around the page; an unreadable index buffer without a mirror does the same. It fails without the change. A title run still does not reach these paths; that is under Not tested.
  • Windows build/test: cargo test --workspace -- --test-threads=4 on c24fbbf (RTX 2070 SUPER): 1426 passed, 0 failed, 46 ignored, 25 SKIPPED. The CI workflow for this fork PR is waiting for a maintainer to approve it (action_required). New smoke block in the description.

(Claude Code, Claude Opus 5.5)

gustavsi added a commit to gustavsi/xcl that referenced this pull request Nov 26, 2026
…outside coherent window)

Preserves xcl-dev#871 safe coherent copy under Wine and xcl-dev#2437 pub(super)
copy_committed_region.

Assisted-by: Antigravity (Gemini 4 Neon)
@DavidM1911

Copy link
Copy Markdown
Contributor

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

Royalflamejlh pushed a commit to Royalflamejlh/xcl that referenced this pull request Nov 26, 2026
…r sync copies without asking readable()

Taken as it is for a test on a title.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

# Conflicts:
#	crates/xcl/src/hle/d3d12x/list_x.rs
#	crates/xcl/src/host.rs
Royalflamejlh pushed a commit to Royalflamejlh/xcl that referenced this pull request Nov 26, 2026
…aw mirror sync copies without asking readable()"

This reverts commit 2870e10, reversing
changes made to 6aa80e3.
rootw0rm pushed a commit to rootw0rm/xcl that referenced this pull request Nov 26, 2026
KOLESNiii and others added 2 commits November 26, 2026 11:08
Once any buffer mirror exists, sync_title_buffers runs on every draw and
nothing reported what it costs. With XCL_ACTIVITY=1 it now logs, every 2 s
in which it ran: draws synced and those with a mirror, copies (whole
buffers), bytes copied, indices scanned for the vertex range, readable()
calls (those over 16 pages, which can take the VirtualQuery walk), the time
in readable() and its slowest call, and the time in the function.

A row is logged whenever any of these moved, also with no draw synced:
the counters of a sync still running at the sample (or stalled for over
2 s) land before its draw is counted, and its slowest readable() would
otherwise be dropped with the skipped row.

The slowest readable() is not in xcl-dev#2391's list: measuring on xcl-dev#2389 found
single calls of 16 pages or fewer taking 1-9 ms, which the other counters
average away.

The counters cost nothing without XCL_ACTIVITY: host_main turns them on
(enable_sync_activity) before it starts the activity thread, and until then
sync_title_buffers, sync_readable() and sync_count() check one relaxed
bool and take no time stamps and touch no shared counter.

No change in behaviour: the old body is sync_mirrors, unchanged apart
from the counters, and sync_title_buffers still returns first when no
mirror exists.

Fixes xcl-dev#2391. Part of xcl-dev#2389.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sync_title_buffers checked every copy's source, and the indices it scans,
with gpu::shader::readable. For a range with a page that is not resident,
or over 16 pages, that walks the region with VirtualQuery. Measured on
xcl-dev#2389, in 18 of 43 two-second windows one such call took 1.1-8.8 ms on
the render thread inside a draw.

The copy now uses title_textures::copy_committed_region (ReadProcessMemory,
which cannot fault), so a page the title freed or protected since keeps
what the mirror had. The indices are scanned from the index buffer's
mirror once copied there; an index buffer without a mirror is still
checked.

xcl-dev#2392 proposed checking once per mirror and again after kernelx frees or
reprotects memory. kernelx does not see HeapFree, which releases large
heap blocks inside ntdll, so that still needed a copy that cannot fault,
and with one the check has nothing left to protect.

Fixes xcl-dev#2392. Part of xcl-dev#2389.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@KOLESNiii
KOLESNiii force-pushed the d3d12x-mirror-sync-no-readable branch from c24fbbf to e426972 Compare November 26, 2026 11:20

@Prime1997 Prime1997 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good within the reviewed scope; retain for integration. The owned-memory mirror-copy change is worth keeping. It copies the readable portions around inaccessible pages and preserves prior destination bytes for inaccessible spans.

PR head e4269721c2795213b996c09ce0b90daf4c461287 integrated locally with current main b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7. The detached worktree remains at main with the combined changes staged, tree e2e760fee2adae36ee394e4ef9affaa79ea87b2a; it is an uncommitted integration candidate, not a clean PR-head run. Source patch SHA-256 e7b219da2d886b5b1885a4fc3d0d469df9f3f15f87b2beb9e468a4ada1dfdd0c.

Targeted result: 2 passed, 0 failed, 0 ignored, 0 skipped. Each exact filter ran in a fresh process:

  • hle::d3d12x::list_x::tests::the_mirror_sync_copies_around_a_page_the_title_made_unreadable
  • hle::d3d12x::list_x::tests::the_mirror_sync_copies_whole_buffers_around_a_page_the_title_made_unreadable

Build: cargo test --locked --offline -p xcl --lib --no-run --message-format=json --target-dir <isolated-target>. Run: <test-exe> <each-exact-filter-above> --exact --test-threads=1 --nocapture. Private executable/target paths are placeholders. Windows 11 Pro 26200, i5-10400, 32 GiB RAM, Rust 1.100.0 MSVC debug. These selected fixtures did not dispatch GPU work.

Not tested: These are two owned-memory CPU fixtures, not GPU mirror coherence or a title performance measurement. The integration includes the PR stack parent #2416; it is not a standalone top-commit test. No whole suite or retail smoke was run for this batch; this is not merge certification.

AI use: Codex (GPT-6) reviewed source, ran the selected tests and verified raw results. Optional temporary Discord for coordinating contributor work, testing and comparing results.

@Prime1997 Prime1997 mentioned this pull request Nov 26, 2026
@Decodere

Copy link
Copy Markdown
Contributor

Independent RTX 4060 (8 GB) / Windows 11 release verification of PR #2437 at e4269721c2795213b996c09ce0b90daf4c461287 (2 commits on merge-base origin/main e1d84b7d9153f86a97d2ec5d209d196046fc0bea; stacked on parent PR #2416 49f04749263990a586038c9adb19bba1eaac1828). Measurements and targeted test results only; not a full source review.

Setup

  • GPU: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB reported by D3D12), driver 32.0.16.2114 (NVIDIA 621.14, WDDM 3.2)
  • CPU / RAM / OS: Intel Core i5-11400F (6 cores / 12 threads), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200
  • Toolchain / caches: rustc 1.100.0 (0ef1bc386 2026-11-09), DXC 1.9.2609.5, release builds, warm DXIL/pipeline caches, quiet machine (zero concurrent builds/tests during timed runs)
  • Workload: Retail workload title: 29640639 via scripts/smoke.ps1 -Seconds 60 (XCL_NETWORK=0, default flags, no input)

Targeted RTX 4060 release unit & GPU tests (e4269721)

  • cargo test --release -p xcl --lib the_mirror_sync_copies_around_a_page_the_title_made_unreadable -- --nocapture: 1 passed, 0 failed, 0 ignored (0.02 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib the_mirror_sync_copies_whole_buffers_around_a_page_the_title_made_unreadable -- --nocapture: 1 passed, 0 failed, 0 ignored (0.02 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib the_mirror_sync_counts_only_once_xcl_activity_enables_it -- --nocapture: 1 passed, 0 failed, 0 ignored (0.02 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib a_mirror_sync_row_with_no_finished_draw_is_still_logged -- --nocapture: 1 passed, 0 failed, 0 ignored (0.00 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib hle::d3d12x::title_textures:: (3 consecutive parallel passes): 19 passed, 0 failed, 0 ignored on all 3 passes (0.82 s / 0.80 s / 0.79 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib hle::d3d12x::list_x:: (3 consecutive parallel passes): 44 passed, 0 failed, 0 ignored on all 3 passes (0.78 s / 0.77 s / 0.78 s, 0 SKIPPED).

Paired 60 s RTX 4060 smoke (merge-base e1d84b7d vs e4269721)

Both runs completed cleanly at steady 60/2 s pacing with 0 device removals and 0 crashes (e4269721 vs e1d84b7d xcl.log: 6,176 / 6,115 MB vs 6,116 / 6,116 MB peak/end local VRAM, 4,682 MB vs 4,650 MB end non-local VRAM, 19,459 vs 19,261 translated draws / 1,024 dispatches with 0 skipped).

Merge-base origin/main (e1d84b7d):

xcl-smoke v1
commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1531 (PresentX 1531)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 13982 MB

PR #2437 head (e4269721):

xcl-smoke v1
commit: e4269721c2795213b996c09ce0b90daf4c461287
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1564 (PresentX 1564)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14020 MB

Limits of coverage

  • Full workspace test suite was not run on e4269721 (only the 4 targeted tests individually, 3 parallel passes each of title_textures:: and list_x::, release build, and paired 60 s smokes).
  • The 60 s default-flags menu/intro smoke did not run with XCL_ACTIVITY=1 or heavy in-world mirrored-buffer churn; copying around unreadable pages without readable() was exercised by the targeted release unit tests above rather than live unreadable-page faults during the smoke.
  • Single discrete NVIDIA 8 GB GPU (RTX 4060) on native Windows 11; no AMD, Intel, or Wine/Linux run on this host.

AI use

Ran the targeted release unit/GPU tests, release build, and paired quiet 60 s smoke runs with assistance from Google Antigravity (Gemini 4 Neon); all test counts, timings, memory figures, and smoke blocks were extracted directly from cargo test, xcl.log, and scripts/smoke.ps1 outputs.

@thehollowedone

Copy link
Copy Markdown

Independent Windows RTX 3080 Ti test of PR #2437 head e4269721c2795213b996c09ce0b90daf4c461287, stacked on #2416 at 49f04749. Clean detached checkout; NVIDIA RTX 3080 Ti (driver 621.35), Windows 11 build 26300, rustc 1.99.1 MSVC, DXC 1.8.2502.11.

Tested

  • cargo build --offline --locked --workspace: passed.
  • cargo test --offline --locked -p xcl --lib the_mirror_sync_copies_ -- --test-threads=1 --nocapture: 2 passed, 0 failed, 0 ignored, covering both new inaccessible-page mirror-copy tests.
  • cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --nocapture: 1,426 passed, 1 failed, 46 ignored across 37 test targets. There were 25 GPU skip notices: 21 no wave64, 3 unsupported per-lane forms (gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426), and 1 no heap windows. These skips are not GPU coverage.
  • The sole failure was gpu::recomp::pso::shader_cache_tests::console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk (cached_only console_mesh hit: "DXIL not compiled yet"). A separate exact-filter run also failed on this head (0 passed, 1 failed) and on its exact parent 49f04749263990a586038c9adb19bba1eaac1828 with the same error (0 passed, 1 failed). This comparison points to an existing failure on the stack parent; the full suite is still red here.

Not tested: Retail title smoke or pacing, AMD/Intel GPUs, inaccessible-source behavior in a title run. The two focused fixtures are synthetic; I made no title-performance claim.

AI use: Codex (GPT-6.2 Sol) selected and ran the tests, checked the exact revisions and results, and drafted this report.

@thehollowedone

Copy link
Copy Markdown

Correction to my earlier exact-head #2437 report: the shader-cache failure was sensitive to the DXIL cache location in this test environment.

On the same clean head e4269721c2795213b996c09ce0b90daf4c461287, I set XCL_DXIL_CACHE to a fresh writable directory under this worktree, then ran cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --nocapture. Result: 1,427 passed, 0 failed, 46 ignored across 37 targets, with the same 25 GPU skip notices (21 no wave64, 3 refused per-lane forms, 1 no heap windows). console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk passed in the suite and in a separate exact-filter run (1 passed, 0 failed, 0 ignored). The two new mirror-copy tests had already passed 2/2 without this cache setting.

Without that setting, the exact shader-cache filter failed on both this head and its parent with DXIL not compiled yet. The test needs a persisted pass-through DXIL file for its cached_only repeat; this controlled rerun is consistent with a default-cache-path problem here. I did not directly prove which default-path write failed. The earlier red suite should not be read as evidence that #2437 introduced a shader-cache regression.

Same RTX 3080 Ti / Windows 11 setup as the linked report. No retail run or title pacing measurement. AI use: Codex (GPT-6.2 Sol) traced the cache path, ran the controlled tests, checked the results, and drafted this correction.

@a-DuckGod

Copy link
Copy Markdown

Independent full-suite Windows 11 / NVIDIA test report on exact PR head e4269721c2795213b996c09ce0b90daf4c461287 (clean detached checkout; merge-base e1d84b7d; stacked on #2416).

Tested

  • Hardware / OS / toolchain: NVIDIA GeForce RTX 3080 Ti (12 GB, wave32, mesh shaders), driver 32.0.16.2114; Intel Core i7-8700K, 32 GB RAM; Windows 11 Pro (Version Dev 29708.1003); rustc 1.100.0 (0ef1bc386 2026-11-09) (x86_64-pc-windows-msvc), Windows SDK DXC 1.8.2502.11, D3D12 debug layer installed, debug build.
  • cargo build --workspace: succeeded.
  • cargo test -p xcl --lib the_mirror_sync -- --nocapture: 3 passed, 0 failed, 0 ignored, 0 skipped (the_mirror_sync_copies_around_a_page_the_title_made_unreadable, the_mirror_sync_copies_whole_buffers_around_a_page_the_title_made_unreadable, the_mirror_sync_counts_only_once_xcl_activity_enables_it).
  • cargo test -p xcl --lib a_mirror_sync_row_with_no_finished_draw_is_still_logged -- --nocapture: 1 passed, 0 failed, 0 ignored, 0 skipped.
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 1427 passed, 0 failed, 46 ignored (including all e2e tests under the D3D12 debug layer and DRED).
  • SKIPPED GPU tests (25): 20 no wave64 (RTX 3080 Ti is 32-lane waves only), 3 per-lane gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 refused forms (V_MUL_F16, V_PK_MUL_F16, V_CVT_F16_F32), 1 shaders::tests::pso_measurement_compiles_an_exact_synthetic_record (cannot disable driver cache; Windows Developer Mode required), 1 heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).

Not tested

  • Release build, retail title / scripts/smoke.ps1 run, XCL_SAMPLE_* tests, AMD / Intel / native wave64 GPUs.

AI use

  • Antigravity (Gemini 4 Neon) checked out the PR, read commit e4269721 (and copy_committed_region), ran the build and tests, and drafted this report. I checked it before posting.

@KOLESNiii

Copy link
Copy Markdown
Author

Thanks for the follow-up. That diagnosis is right, and the failure isn't in this PR: on main, console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk writes the pass-through MS DXIL to the default %LOCALAPPDATA%\xcl\dxil, and its cached_only repeat needs that file. When the folder can't be written, the store fails silently and the repeat gets DXIL not compiled yet. I reproduced it by pointing LOCALAPPDATA at a file; with a writable default cache the test passes.

AI use: Claude Code, Claude Opus 5.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

D3D12.X: the per-draw mirror sync checks its source with readable() at every draw

9 participants