D3D12.X: wait for title queues before unmapping texture pages #594

Open
github-bot wants to merge 1 commit from github-bot/gh-594 into main AGit
Owner

@⁠Abdellah-Khanani on GitHub · 2026-11-24 02:17 UTC · original
Abdellah-Khanani:codex/vram-unmap-after-use → main · +138 −5 · 1 files · 1 commits · open

Fixes #475. Order unmapping of a superseded title texture after work already submitted on the title's command queues, so its pages are not removed while GPU work may still sample it.

What is in it

  • crates/xcl/src/hle/d3d12x/vram.rs: signal reusable per-queue fences and make the mapping queue wait on them before unmapping. If a fence cannot be established, keep the resource mapped.
  • Add a GPU regression test that holds a submitted resource barrier behind a fence and verifies the unmap cannot complete early.

Tested

  • AMD Radeon RX 5700 XT, driver 32.0.21045.29003; Windows 11 build 22631; Rust 1.100.0 MSVC; debug.
  • cargo test -p xcl --lib superseded_texture_unmap_waits_for_title_queue_work -- --nocapture: 1 passed.
  • The regression test fails when the queue wait is removed.
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 640 passed, 1 failed, 21 ignored. The failure is gpu_nonfused_mad_and_mac_prevent_fma_contraction (#472), also reproduced on main.
  • SKIPPED: gpu_geometry_mode_es_gs_strip and gpu_mesh_mode_two_passes (no mesh shaders).

Regression run

Main:

xcl-smoke v1
commit: 508a0c74d7c0625d6d2de8d24494e69dc2e1926f
gpu: AMD Radeon RX 5700 XT
title: d06b10c6
seconds: 120
exit: 0x0
frames shown: 703 (PresentX 704)
presents per 2 s (last 3): 5 4 5
device removals: 0
crashes: 0
peak commit: 16372 MB

This PR:

xcl-smoke v1
commit: 3bb3c2fea4ee6a2e74b20e308c328a108ff548ac
gpu: AMD Radeon RX 5700 XT
title: d06b10c6
seconds: 120
exit: 0x0
frames shown: 1053 (PresentX 1053)
presents per 2 s (last 3): 19 20 19
device removals: 0
crashes: 0
peak commit: 15823 MB

Not tested

  • Other GPU vendors.

Reviewed by

  • Abdellah-Khanani reviewed the change.

AI use

  • OpenAI Codex (GPT-6) wrote the implementation, regression test and description. Abdellah-Khanani reviewed the change.
**@⁠Abdellah-Khanani** on GitHub · 2026-11-24 02:17 UTC · [original](https://github.com/xcl-dev/xcl/pull/594) `Abdellah-Khanani:codex/vram-unmap-after-use` → `main` · +138 −5 · 1 files · 1 commits · open Fixes #475. Order unmapping of a superseded title texture after work already submitted on the title's command queues, so its pages are not removed while GPU work may still sample it. **What is in it** - `crates/xcl/src/hle/d3d12x/vram.rs`: signal reusable per-queue fences and make the mapping queue wait on them before unmapping. If a fence cannot be established, keep the resource mapped. - Add a GPU regression test that holds a submitted resource barrier behind a fence and verifies the unmap cannot complete early. **Tested** - AMD Radeon RX 5700 XT, driver 32.0.21045.29003; Windows 11 build 22631; Rust 1.100.0 MSVC; debug. - `cargo test -p xcl --lib superseded_texture_unmap_waits_for_title_queue_work -- --nocapture`: 1 passed. - The regression test fails when the queue wait is removed. - `cargo test --workspace --no-fail-fast -- --test-threads=4`: 640 passed, 1 failed, 21 ignored. The failure is `gpu_nonfused_mad_and_mac_prevent_fma_contraction` (#472), also reproduced on `main`. - SKIPPED: `gpu_geometry_mode_es_gs_strip` and `gpu_mesh_mode_two_passes` (no mesh shaders). **Regression run** Main: ``` xcl-smoke v1 commit: 508a0c74d7c0625d6d2de8d24494e69dc2e1926f gpu: AMD Radeon RX 5700 XT title: d06b10c6 seconds: 120 exit: 0x0 frames shown: 703 (PresentX 704) presents per 2 s (last 3): 5 4 5 device removals: 0 crashes: 0 peak commit: 16372 MB ``` This PR: ``` xcl-smoke v1 commit: 3bb3c2fea4ee6a2e74b20e308c328a108ff548ac gpu: AMD Radeon RX 5700 XT title: d06b10c6 seconds: 120 exit: 0x0 frames shown: 1053 (PresentX 1053) presents per 2 s (last 3): 19 20 19 device removals: 0 crashes: 0 peak commit: 15823 MB ``` **Not tested** - Other GPU vendors. **Reviewed by** - Abdellah-Khanani reviewed the change. **AI use** - OpenAI Codex (GPT-6) wrote the implementation, regression test and description. Abdellah-Khanani reviewed the change.
A mapping queue unmap could overtake draws already submitted on the title queues. Give each title queue a reusable fence and order the unmap after a marker on every known queue; keep the mapping when a marker cannot be established. Add an RX 5700 XT regression test that holds a submitted resource barrier behind a fence.

Co-Authored-By: GPT-6 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:26:39 +00:00
Author
Owner

@⁠CryingLaughing on GitHub · 2026-11-24 02:36 UTC · original

Tested

  • Clean head 3bb3c2fea4ee6a2e74b20e308c328a108ff548ac on an RTX 4080 with NVIDIA driver 621.01, Core i5-13600K, Windows 11 25H2 build 26200.9974, Rust 1.100.0 MSVC x64, DXC 1.8.2502.11, debug. The reserved-texture fixture enumerates DXGI adapter 0 directly. The scratch run below confirmed that slot was the RTX 4080. XCL_ADAPTER=4080, XCL_REQUIRE_GPU=1, all XCL_SAMPLE_* variables unset.
  • cargo test -p xcl --lib --locked -j 4 hle::d3d12x::vram::tests::superseded_texture_unmap_waits_for_title_queue_work -- --show-output --test-threads=1 passed 1/1. The unmap fence for the synthetic reserved texture stayed pending while the title queue was gated and completed after the gate opened.
  • In a scratch checkout of the same head with self.queue.Wait(&fence, value) removed, the test failed 0/1 as expected. The mapping fence already reached the unmap value 2 while the title queue was still gated. The scratch fixture recorded that value, opened the gate and drained the title queue before asserting the ordering failure.
  • cargo build --workspace --locked -j 4 passed. cargo test --workspace --locked -j 4 -- --test-threads=4 --show-output reported 681 passed, 0 failed, 41 ignored. gpu_nonfused_mad_and_mac_prevent_fma_contraction passed on this setup. The count includes opt-in game-data tests that returned early and four explicit capability skips. gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware require native wave64. test_title_draws_with_a_root_signature_under_the_debug_layer and uploads_start_from_each_subresources_state require the D3D12 debug layer.

Not tested

  • Retail titles, release builds, or other adapters.

AI use

  • OpenAI Codex (GPT-6 family, exact variant unavailable) prepared the scratch control, ran the tests and drafted this report.
**@⁠CryingLaughing** on GitHub · 2026-11-24 02:36 UTC · [original](https://github.com/xcl-dev/xcl/pull/594#issuecomment-7120313900) **Tested** - Clean head `3bb3c2fea4ee6a2e74b20e308c328a108ff548ac` on an RTX 4080 with NVIDIA driver 621.01, Core i5-13600K, Windows 11 25H2 build 26200.9974, Rust 1.100.0 MSVC x64, DXC 1.8.2502.11, debug. The reserved-texture fixture enumerates DXGI adapter 0 directly. The scratch run below confirmed that slot was the RTX 4080. `XCL_ADAPTER=4080`, `XCL_REQUIRE_GPU=1`, all `XCL_SAMPLE_*` variables unset. - `cargo test -p xcl --lib --locked -j 4 hle::d3d12x::vram::tests::superseded_texture_unmap_waits_for_title_queue_work -- --show-output --test-threads=1` passed 1/1. The unmap fence for the synthetic reserved texture stayed pending while the title queue was gated and completed after the gate opened. - In a scratch checkout of the same head with `self.queue.Wait(&fence, value)` removed, the test failed 0/1 as expected. The mapping fence already reached the unmap value `2` while the title queue was still gated. The scratch fixture recorded that value, opened the gate and drained the title queue before asserting the ordering failure. - `cargo build --workspace --locked -j 4` passed. `cargo test --workspace --locked -j 4 -- --test-threads=4 --show-output` reported 681 passed, 0 failed, 41 ignored. `gpu_nonfused_mad_and_mac_prevent_fma_contraction` passed on this setup. The count includes opt-in game-data tests that returned early and four explicit capability skips. `gpu_geometry_wave32_prefix_count_over_a_mask` and `gpu_wave32_program_in_wave64_hardware` require native wave64. `test_title_draws_with_a_root_signature_under_the_debug_layer` and `uploads_start_from_each_subresources_state` require the D3D12 debug layer. **Not tested** - Retail titles, release builds, or other adapters. **AI use** - OpenAI Codex (GPT-6 family, exact variant unavailable) prepared the scratch control, ran the tests and drafted this report.
Author
Owner

@⁠upipibi on GitHub · 2026-11-24 04:55 UTC · original

A possible GPU deadlock in 3bb3c2f, found by reading the code (not run):

unmap now makes the mapping queue wait for a marker signalled on every title queue (vram.rs:322-346), and then raises pages.value. before_execute (:600-612) makes the next work on every title queue wait for pages.value. Together they form a cycle when a title queue is held by a signal that a later submission on another queue provides, which is the pattern #433 deals with:

  1. The title submits Q1.Wait(F, n), where F = n comes from work it will submit on Q2 later.
  2. A texture is superseded, and unmap queues Q1.Signal(M1, k) behind that wait, mapQ.Wait(M1, k), the NULL mapping, and mapQ.Signal(pages.fence, v + 1).
  3. The title submits work plus Signal(F, n) on Q2. before_execute(Q2) first inserts Q2.Wait(pages.fence, v + 1).

Now Q2 waits for the mapping queue, the mapping queue waits for Q1's marker, and Q1 waits for F, which only Q2 can signal. That hangs both queues (TDR / device removed). Before this PR the mapping queue never waited on title queues, so there was no cycle.

One way out: don't wait on the GPU. Record each title queue's marker value at supersede time, then do the NULL mapping later from the CPU, once every marker's GetCompletedValue has passed (polled from the next before_execute, or by the existing worker). The pages stay mapped slightly longer, but no queue ever waits for an unmap. Separately, a title queue doesn't need to wait for an unmap at all, only for maps, so unmaps could stop bumping the value before_execute waits on. That alone doesn't remove the cycle if a later map is queued behind the unmap.

The liveness of known_queues() is fine: QUEUES holds a reference, as for drain_gpu.

AI-assisted (Claude Code), read-only review.

**@⁠upipibi** on GitHub · 2026-11-24 04:55 UTC · [original](https://github.com/xcl-dev/xcl/pull/594#issuecomment-7122465102) A possible GPU deadlock in `3bb3c2f`, found by reading the code (not run): `unmap` now makes the mapping queue wait for a marker signalled on every title queue (`vram.rs:322-346`), and then raises `pages.value`. `before_execute` (`:600-612`) makes the next work on every title queue wait for `pages.value`. Together they form a cycle when a title queue is held by a signal that a later submission on another queue provides, which is the pattern #433 deals with: 1. The title submits `Q1.Wait(F, n)`, where `F = n` comes from work it will submit on `Q2` later. 2. A texture is superseded, and `unmap` queues `Q1.Signal(M1, k)` behind that wait, `mapQ.Wait(M1, k)`, the NULL mapping, and `mapQ.Signal(pages.fence, v + 1)`. 3. The title submits work plus `Signal(F, n)` on `Q2`. `before_execute(Q2)` first inserts `Q2.Wait(pages.fence, v + 1)`. Now `Q2` waits for the mapping queue, the mapping queue waits for `Q1`'s marker, and `Q1` waits for `F`, which only `Q2` can signal. That hangs both queues (TDR / device removed). Before this PR the mapping queue never waited on title queues, so there was no cycle. One way out: don't wait on the GPU. Record each title queue's marker value at supersede time, then do the NULL mapping later from the CPU, once every marker's `GetCompletedValue` has passed (polled from the next `before_execute`, or by the existing worker). The pages stay mapped slightly longer, but no queue ever waits for an unmap. Separately, a title queue doesn't need to wait for an unmap at all, only for maps, so unmaps could stop bumping the value `before_execute` waits on. That alone doesn't remove the cycle if a later map is queued behind the unmap. The liveness of `known_queues()` is fine: `QUEUES` holds a reference, as for `drain_gpu`. AI-assisted (Claude Code), read-only review.
Author
Owner

@⁠Abdellah-Khanani on GitHub · 2026-11-24 09:47 UTC · original

Run data that fits the cycle @⁠upipibi describes. I don't have a trace that proves this cycle is the cause.

Tested

  • AMD Radeon RX 5700 XT (RDNA1), driver 32.0.21045.29003; Ryzen 5 2600; Windows 11 Pro 22631; Rust 1.98.1; debug; cargo test --workspace --no-fail-fast -- --test-threads=4.
  • 3bb3c2f rebased onto main dd2ae9a, with only the new test changed so that a failure can't abort the binary:
    • 3 full-suite runs; 2 of them hung the GPU;
    • in one run, UMA import check: ... GPU fence still pending after 2000 ms came first, then D3D12 device removed: 0x887a0007;
    • in both hung runs, everything after the reset failed with 0x887A0005 (82 and 80 FAILED lines).
  • main dd2ae9a without the PR, the same command right after: 649 passed, 1 failed, 21 ignored in the lib (the failure is #472, which also fails on main on RDNA1), and no hang.
  • Earlier, 3bb3c2f on its own base 508a0c7 passed the whole suite without a hang. So the hang either needs the newer main, or it is timing-dependent and those runs were lucky.

Not tested

  • Any title.
  • Whether the CPU-side unmap @⁠upipibi suggests removes the hang. I can run it on this GPU once there is a commit.

The new test itself does what it should here: it passes with the wait, and it fails without it.

Claude Code (Claude Opus 5.5) ran the tests and wrote this comment; I checked it.

**@⁠Abdellah-Khanani** on GitHub · 2026-11-24 09:47 UTC · [original](https://github.com/xcl-dev/xcl/pull/594#issuecomment-7127887568) Run data that fits the cycle @⁠upipibi describes. I don't have a trace that proves this cycle is the cause. **Tested** - AMD Radeon RX 5700 XT (RDNA1), driver 32.0.21045.29003; Ryzen 5 2600; Windows 11 Pro 22631; Rust 1.98.1; debug; `cargo test --workspace --no-fail-fast -- --test-threads=4`. - `3bb3c2f` rebased onto `main` `dd2ae9a`, with only the new test changed so that a failure can't abort the binary: - 3 full-suite runs; 2 of them hung the GPU; - in one run, `UMA import check: ... GPU fence still pending after 2000 ms` came first, then `D3D12 device removed: 0x887a0007`; - in both hung runs, everything after the reset failed with `0x887A0005` (82 and 80 FAILED lines). - `main` `dd2ae9a` without the PR, the same command right after: 649 passed, 1 failed, 21 ignored in the lib (the failure is #472, which also fails on `main` on RDNA1), and no hang. - Earlier, `3bb3c2f` on its own base `508a0c7` passed the whole suite without a hang. So the hang either needs the newer `main`, or it is timing-dependent and those runs were lucky. **Not tested** - Any title. - Whether the CPU-side unmap @⁠upipibi suggests removes the hang. I can run it on this GPU once there is a commit. The new test itself does what it should here: it passes with the wait, and it fails without it. Claude Code (Claude Opus 5.5) ran the tests and wrote this comment; I checked it.
Author
Owner

@⁠Ali-AbdulHadii on GitHub · 2026-11-24 12:29 UTC · original

Run data and thread dumps confirming the cycle @⁠upipibi described, plus a variant that avoids it.

Setup: Linux, RTX 5080 (NVIDIA 620.73.04), proton-cachyos-slr Wine, vkd3d-proton master 30b0eb9 + the repo patch. XCL: a local branch of main with this PR merged (plus #640 and others), retail title 1.0.2.1 in its world.

What happened with this PR merged: in the world, one frame every ~6 s. The fence bridge's 5 s watchdog released a Wait64BitValueX GPU wait every ~6 s, and every present came ~0.3 s after a release (29–36 releases per run).

Thread dumps (XCL_THREAD_DUMP_AT=160,190), the same in both: the title's submitting thread is in real::q_execute_command_lists → title_textures::refresh → texture::upload_batch → gpu::fence::wait. So the cycle is:

  1. a title compute queue GPU-waits (Wait64BitValueX) for a counter that a list on the title's graphics queue writes;
  2. this PR's unmap makes the mapping queue wait for a marker on every title queue, so it also waits for that compute queue;
  3. vram::before_execute makes the upload queue wait for the mapping queue's fence;
  4. the submitting thread waits on the CPU for the upload batch, so the graphics list that writes the counter is never submitted.

A variant without the cycle: keep the markers, but make the CPU hold the unmap instead of the mapping queue. unmap signals the markers on the title queues, records (resource, total, markers) in a list holding a reference to the resource, and returns. The held unmaps whose markers have all completed are made at the next before_execute, and mapping the resource again drops its held unmap. XCL's queues then never wait for a title queue. Your GPU test still holds: the unmap is not made before the gated queue passes its marker. I added a check that the mapping queue stays free meanwhile.

After: 0 watchdog releases at the same point of the next run, and frames no longer stall in step with them.

Not tested: Windows, AMD.

AI use: Claude Code (Claude Opus 5.5) diagnosed this, wrote the local change and this text; the user approved posting it.

**@⁠Ali-AbdulHadii** on GitHub · 2026-11-24 12:29 UTC · [original](https://github.com/xcl-dev/xcl/pull/594#issuecomment-7131508143) Run data and thread dumps confirming the cycle @⁠upipibi described, plus a variant that avoids it. **Setup:** Linux, RTX 5080 (NVIDIA 620.73.04), proton-cachyos-slr Wine, vkd3d-proton master `30b0eb9` + the repo patch. XCL: a local branch of `main` with this PR merged (plus #640 and others), retail title 1.0.2.1 in its world. **What happened with this PR merged:** in the world, one frame every ~6 s. The fence bridge's 5 s watchdog released a `Wait64BitValueX` GPU wait every ~6 s, and every present came ~0.3 s after a release (29–36 releases per run). **Thread dumps** (`XCL_THREAD_DUMP_AT=160,190`), the same in both: the title's submitting thread is in `real::q_execute_command_lists → title_textures::refresh → texture::upload_batch → gpu::fence::wait`. So the cycle is: 1. a title compute queue GPU-waits (`Wait64BitValueX`) for a counter that a list on the title's graphics queue writes; 2. this PR's `unmap` makes the mapping queue wait for a marker on every title queue, so it also waits for that compute queue; 3. `vram::before_execute` makes the upload queue wait for the mapping queue's fence; 4. the submitting thread waits on the CPU for the upload batch, so the graphics list that writes the counter is never submitted. **A variant without the cycle:** keep the markers, but make the CPU hold the unmap instead of the mapping queue. `unmap` signals the markers on the title queues, records `(resource, total, markers)` in a list holding a reference to the resource, and returns. The held unmaps whose markers have all completed are made at the next `before_execute`, and mapping the resource again drops its held unmap. XCL's queues then never wait for a title queue. Your GPU test still holds: the unmap is not made before the gated queue passes its marker. I added a check that the mapping queue stays free meanwhile. **After:** 0 watchdog releases at the same point of the next run, and frames no longer stall in step with them. Not tested: Windows, AMD. AI use: Claude Code (Claude Opus 5.5) diagnosed this, wrote the local change and this text; the user approved posting it.
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 06:43 UTC · original

Empirical test report (3bb3c2fe)

Hardware / environment

Commit 3bb3c2fea4ee6a2e74b20e308c328a108ff548ac. Windows 11 Enterprise Evaluation, build 26200. AMD Ryzen 7 3800X. DXGI adapter 0 was Intel Arc A770 Graphics (driver 32.0.101.9175) in a separate enumeration probe. Rust 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc), DXC 1.9.2609.5 (01b62ad47). Unoptimized Cargo test profile, debug info and incremental compilation disabled.

Commands and results

  • Outside the Arc wrapper, cargo test --workspace --no-run exited 0 and built the test binaries.
  • The command equivalents below show the prebuilt library executable by basename. $prefix is hle::d3d12x::vram::tests::.
xcl-00e28da3621caf64.exe --exact --test-threads=1 "${prefix}tile_ranges_per_heap" "${prefix}owned_pages_never_alias_disjoint_ranges" "${prefix}an_arena_is_shared_at_its_addresses_and_otherwise_its_placements_size" "${prefix}an_arena_no_resource_uses_goes_after_two_seconds" "${prefix}streamed_targets_stay_bounded"
xcl-00e28da3621caf64.exe --exact --test-threads=1 "${prefix}superseded_texture_unmap_waits_for_title_queue_work"
xcl-00e28da3621caf64.exe --exact --test-threads=1 --format terse "${prefix}superseded_texture_unmap_waits_for_title_queue_work"
  • CPU command outside the wrapper with XCL_ADAPTER=NONE_CPU_ONLY exited 0. 5 passed, 0 failed, 0 ignored, 0 skipped.
  • Both GPU commands ran inside Invoke-ArcTest.ps1 with XCL_ADAPTER=A770 and RUST_TEST_NOCAPTURE=1. Each exited 0 with libtest reporting 1 passed, 0 failed, 0 ignored. Each skipped the test body. The log has one case-sensitive ^SKIPPED line from the terse rerun and one inline skip marker from the first attempt.

Observed behavior

Both GPU attempts reported no GPU at the test's capability gate. The queue-wait assertions were never reached.

Not tested

GPU unmap ordering, the full GPU workspace suite, and game smoke runs.

AI use

Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr594-focused.log and published.

**@⁠JJAutoCompare** on GitHub · 2026-11-25 06:43 UTC · [original](https://github.com/xcl-dev/xcl/pull/594#issuecomment-7155085372) ### Empirical test report (3bb3c2fe) **Hardware / environment** Commit `3bb3c2fea4ee6a2e74b20e308c328a108ff548ac`. Windows 11 Enterprise Evaluation, build 26200. AMD Ryzen 7 3800X. DXGI adapter 0 was Intel Arc A770 Graphics (driver 32.0.101.9175) in a separate enumeration probe. Rust 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc), DXC 1.9.2609.5 (01b62ad47). Unoptimized Cargo test profile, debug info and incremental compilation disabled. **Commands and results** - Outside the Arc wrapper, `cargo test --workspace --no-run` exited 0 and built the test binaries. - The command equivalents below show the prebuilt library executable by basename. `$prefix` is `hle::d3d12x::vram::tests::`. ```powershell xcl-00e28da3621caf64.exe --exact --test-threads=1 "${prefix}tile_ranges_per_heap" "${prefix}owned_pages_never_alias_disjoint_ranges" "${prefix}an_arena_is_shared_at_its_addresses_and_otherwise_its_placements_size" "${prefix}an_arena_no_resource_uses_goes_after_two_seconds" "${prefix}streamed_targets_stay_bounded" xcl-00e28da3621caf64.exe --exact --test-threads=1 "${prefix}superseded_texture_unmap_waits_for_title_queue_work" xcl-00e28da3621caf64.exe --exact --test-threads=1 --format terse "${prefix}superseded_texture_unmap_waits_for_title_queue_work" ``` - CPU command outside the wrapper with `XCL_ADAPTER=NONE_CPU_ONLY` exited 0. 5 passed, 0 failed, 0 ignored, 0 skipped. - Both GPU commands ran inside `Invoke-ArcTest.ps1` with `XCL_ADAPTER=A770` and `RUST_TEST_NOCAPTURE=1`. Each exited 0 with libtest reporting 1 passed, 0 failed, 0 ignored. Each skipped the test body. The log has one case-sensitive `^SKIPPED ` line from the terse rerun and one inline skip marker from the first attempt. **Observed behavior** Both GPU attempts reported `no GPU` at the test's capability gate. The queue-wait assertions were never reached. **Not tested** GPU unmap ordering, the full GPU workspace suite, and game smoke runs. **AI use** Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr594-focused.log and published.
Author
Owner

@⁠Dezmonius on GitHub · 2026-11-25 11:40 UTC · original

Targeted GPU check on RTX 5070 / Windows 10. Unchanged 3bb3c2fea4ee6a2e74b20e308c328a108ff548ac, Rust 1.100.0 MSVC, release, RTX 5070 driver 610.88 (32.0.16.1088), Windows 10 build 19045.

superseded_texture_unmap_waits_for_title_queue_work passed in 3/3 fresh processes, with no skips (0.38–0.44 s per run). In this fixture, the unmap fence stayed pending while the title queue was held and completed when the gate opened.

On the same adapter, I separately observed 0x887A0006 in the concurrent case of the #2057 synthetic probe. The #594 result only covers the single-queue ordering assertion. The multi-queue cycle described in review, the title, and the whole suite were outside this run.

AI-assisted (Codex) for running the existing test and preparing this comment. Synthetic data only.

**@⁠Dezmonius** on GitHub · 2026-11-25 11:40 UTC · [original](https://github.com/xcl-dev/xcl/pull/594#issuecomment-7161361768) **Targeted GPU check on RTX 5070 / Windows 10.** Unchanged `3bb3c2fea4ee6a2e74b20e308c328a108ff548ac`, Rust 1.100.0 MSVC, release, RTX 5070 driver 610.88 (32.0.16.1088), Windows 10 build 19045. `superseded_texture_unmap_waits_for_title_queue_work` passed in 3/3 fresh processes, with no skips (0.38–0.44 s per run). In this fixture, the unmap fence stayed pending while the title queue was held and completed when the gate opened. On the same adapter, I separately observed `0x887A0006` in the concurrent case of the [#2057 synthetic probe](https://git.gtahub.st/github/xcl-dev--xcl/pulls/2057). The #594 result only covers the single-queue ordering assertion. The [multi-queue cycle described in review](https://git.gtahub.st/github/xcl-dev--xcl/pulls/594), the title, and the whole suite were outside this run. AI-assisted (Codex) for running the existing test and preparing this comment. Synthetic data only.
Author
Owner

@⁠joeypercia on GitHub · 2026-11-25 11:55 UTC · original

@⁠Abdellah-Khanani @⁠upipibi @⁠Ali-AbdulHadii #2270 implements the CPU-held variant discussed here, on current main. A mark goes on every title queue and upload queue, and the unmap waits until the CPU sees every mark done (made in before_execute). The mapping queue never waits on a title queue. Credited to this thread.

The new reason for it: a synthetic probe on #2057 that flips a reserved texture's tiles to NULL while copies to it run gives 0x887A0006 on an RTX 5070. It passes on an RTX 3070 and an RTX 4070 Ti. If you'd rather update #594 with this, say so, and I'll close mine.

AI use: Claude Code (Claude Opus 5.5) wrote this comment.

**@⁠joeypercia** on GitHub · 2026-11-25 11:55 UTC · [original](https://github.com/xcl-dev/xcl/pull/594#issuecomment-7161691859) @⁠Abdellah-Khanani @⁠upipibi @⁠Ali-AbdulHadii #2270 implements the CPU-held variant discussed here, on current `main`. A mark goes on every title queue and upload queue, and the unmap waits until the CPU sees every mark done (made in `before_execute`). The mapping queue never waits on a title queue. Credited to this thread. The new reason for it: a synthetic probe on #2057 that flips a reserved texture's tiles to NULL while copies to it run gives `0x887A0006` on an RTX 5070. It passes on an RTX 3070 and an RTX 4070 Ti. If you'd rather update #594 with this, say so, and I'll close mine. AI use: Claude Code (Claude Opus 5.5) wrote this comment.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 13:07 UTC · original

Verification on RTX 3060 Ti (Windows 11): merge conflict with current main — needs a rebase before it can be tested.

**@⁠DavidM1911** on GitHub · 2026-11-25 13:07 UTC · [original](https://github.com/xcl-dev/xcl/pull/594#issuecomment-7163313331) Verification on RTX 3060 Ti (Windows 11): **merge conflict with current `main`** — needs a rebase before it can be tested.
This pull request has changes conflicting with the target branch.
  • crates/xcl/src/hle/d3d12x/vram.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/594/head:github-bot/gh-594'
git switch 'github-bot/gh-594'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-594'
git switch 'github-bot/gh-594'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-594'
git switch 'github-bot/gh-594'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-594'
git switch 'main'
git merge --squash 'github-bot/gh-594'
git switch 'main'
git merge --ff-only 'github-bot/gh-594'
git switch 'main'
git merge 'github-bot/gh-594'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.