D3D12.X: prevent stale texture unmaps after placement restoration #2055

Open
Mustafaiq1998x wants to merge 1 commit from upstream-pr/2065 into main
Mustafaiq1998x commented 2026-11-25 02:34:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Mustafaiq1998x on 2026-11-25T02:34:30Z.


Addresses point 2 of #1897.

A delayed unmap can remove VRAM mappings from a texture that has already been restored to the active placement table. This fix revalidates mapping decisions under the texture table lock.

What is in it

  • Prevent stale unmaps of restored textures.
  • Prevent obsolete remaps of superseded placements.
  • Add a deterministic GPU regression test with pixel readback and normal unmap/remap controls.

Tested

  • AMD Radeon RX 6800 16 GB, driver 32.0.21045.29003.
  • Intel Core i5-13400, 16 GB RAM.
  • Windows build 26300, Rust 1.100.0, DXC 1.9.2602.17.
  • Base: cbc296a
  • Head: 3ff9893

Before:

STALE_UNMAP_RESULT active=true mapped=false
RED_EXIT=101

After (three consecutive successful GPU runs):

STALE_UNMAP_RESULT active=true mapped=true
STALE_UNMAP_CONTROL unmap=true remap=true pixels=true
STALE_UNMAP_PIXELS_PASS
GREEN_CONFIRMED
  • Existing overlapping-placement and shared-VRAM tests passed.
  • Debug workspace and release builds passed.
  • cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --nocapture: 1154 passed, 1 failed, 46 ignored.
  • The failing DXIL fuzz test also fails on the clean baseline. Exact baseline seed equality is not verified.
  • GPU skips include unsupported per-lane configurations, unavailable driver-cache control, debug layers and heap windows.

Regression run

Pending paired real-title smoke tests.

Not tested

  • Retail title smoke and world entry.
  • NVIDIA and Intel GPUs.
  • Separate synchronization hazards in #594 and #799.

AI use

ChatGPT (GPT-6.2) assisted with implementation, source analysis and regression-test design. All reported GPU tests were executed on physical hardware.

<!-- greyfinch-sync:ivall/xcl:issue:5484053248 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2065). Originally posted by [Mustafaiq1998x](https://github.com/Mustafaiq1998x) on 2026-11-25T02:34:30Z. --- Addresses point 2 of #1897. A delayed unmap can remove VRAM mappings from a texture that has already been restored to the active placement table. This fix revalidates mapping decisions under the texture table lock. **What is in it** - Prevent stale unmaps of restored textures. - Prevent obsolete remaps of superseded placements. - Add a deterministic GPU regression test with pixel readback and normal unmap/remap controls. **Tested** - AMD Radeon RX 6800 16 GB, driver 32.0.21045.29003. - Intel Core i5-13400, 16 GB RAM. - Windows build 26300, Rust 1.100.0, DXC 1.9.2602.17. - Base: `cbc296a` - Head: `3ff9893` Before: ``` STALE_UNMAP_RESULT active=true mapped=false RED_EXIT=101 ``` After (three consecutive successful GPU runs): ``` STALE_UNMAP_RESULT active=true mapped=true STALE_UNMAP_CONTROL unmap=true remap=true pixels=true STALE_UNMAP_PIXELS_PASS GREEN_CONFIRMED ``` - Existing overlapping-placement and shared-VRAM tests passed. - Debug workspace and release builds passed. - `cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --nocapture`: 1154 passed, 1 failed, 46 ignored. - The failing DXIL fuzz test also fails on the clean baseline. Exact baseline seed equality is not verified. - GPU skips include unsupported per-lane configurations, unavailable driver-cache control, debug layers and heap windows. **Regression run** Pending paired real-title smoke tests. **Not tested** - Retail title smoke and world entry. - NVIDIA and Intel GPUs. - Separate synchronization hazards in #594 and #799. **AI use** ChatGPT (GPT-6.2) assisted with implementation, source analysis and regression-test design. All reported GPU tests were executed on physical hardware.
WebIdentity1 commented 2026-11-25 03:05:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by WebIdentity1 on 2026-11-25T02:37:35Z.


Independent RTX 3090 check of exact 3ff98937f3bb94820b23b582355920c0396a6225: the deterministic stale-unmap regression reproduces without the state checks and passes with your unchanged fix.

Tested — Windows 10 Home 19045, Ryzen 7 7800X3D, RTX 3090 driver 591.74 (32.0.15.9174), Rust/Cargo 1.98.1 x64 MSVC, DXC 1.8.2502.11, debug, XCL_ADAPTER=3090.

cargo test --locked -p xcl --lib -- stale_unmap_after_texture_restoration overlapping_placements_retire_superseded_entries placed_title_textures_share_vram_and_preserve_pixels --test-threads=1 --show-output
Snapshot Passed / failed / ignored Explicit skips Restored texture
Head with only the two mapping helpers restored to unconditional unmap/remap 2 / 1 / 0 1 active=true mapped=false
Unmodified head 3 / 0 / 0 1 active=true mapped=true

The negative control is the same head with identical author tests, not a parent checkout. The focused test prints NVIDIA GeForce RTX 3090. Positive initial/restored/control texture-copy readbacks all match the expected contents, and STALE_UNMAP_CONTROL unmap=true remap=true pixels=true / STALE_UNMAP_PIXELS_PASS are present. The negative test stops before reading the known-unmapped texture. The placement-table unit control passes both.

The explicit skip in each run is placed_title_textures_share_vram_and_preserve_pixels: this adapter makes no reserved cube with mips. It returns before its streaming/pixel controls, so those are not coverage. That existing test uses EnumAdapters1(0), not the XCL_ADAPTER selector; I cannot attribute its skip to the 3090 from its log. The new stale-unmap test selects and names the 3090 correctly.

Both 322-file source manifests match before/after on Windows and locally; Cargo rebuilt XCL for both snapshots. No additional runtime change or competing PR.

Not tested — full workspace suite, retail smoke/world entry, performance, the reversed stale-remap interleaving independently, or the separate submitted-GPU-work/cross-queue lifetime hazards in #1897 point 1 / #594 / #799. This fills the NVIDIA gap for the deterministic restoration/unmap case; it is not a merge-readiness or gameplay claim.

AI use — Codex (GPT-6) reviewed the change, prepared the control, ran and verified the native comparison, and wrote this report. The runtime fix and regression are the PR author's.

<!-- greyfinch-sync:ivall/xcl:comment:7150967417 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2065#issuecomment-7150967417). Originally posted by [WebIdentity1](https://github.com/WebIdentity1) on 2026-11-25T02:37:35Z. --- Independent RTX 3090 check of exact `3ff98937f3bb94820b23b582355920c0396a6225`: the deterministic stale-unmap regression reproduces without the state checks and passes with your unchanged fix. **Tested** — Windows 10 Home 19045, Ryzen 7 7800X3D, RTX 3090 driver 591.74 (`32.0.15.9174`), Rust/Cargo 1.98.1 x64 MSVC, DXC 1.8.2502.11, debug, `XCL_ADAPTER=3090`. ```text cargo test --locked -p xcl --lib -- stale_unmap_after_texture_restoration overlapping_placements_retire_superseded_entries placed_title_textures_share_vram_and_preserve_pixels --test-threads=1 --show-output ``` | Snapshot | Passed / failed / ignored | Explicit skips | Restored texture | |---|---|---|---| | Head with only the two mapping helpers restored to unconditional unmap/remap | 2 / 1 / 0 | 1 | `active=true mapped=false` | | Unmodified head | 3 / 0 / 0 | 1 | `active=true mapped=true` | The negative control is the same head with identical author tests, **not a parent checkout**. The focused test prints `NVIDIA GeForce RTX 3090`. Positive initial/restored/control texture-copy readbacks all match the expected contents, and `STALE_UNMAP_CONTROL unmap=true remap=true pixels=true` / `STALE_UNMAP_PIXELS_PASS` are present. The negative test stops before reading the known-unmapped texture. The placement-table unit control passes both. The explicit skip in each run is `placed_title_textures_share_vram_and_preserve_pixels: this adapter makes no reserved cube with mips`. It returns before its streaming/pixel controls, so those are **not coverage**. That existing test uses `EnumAdapters1(0)`, not the `XCL_ADAPTER` selector; I cannot attribute its skip to the 3090 from its log. The new stale-unmap test selects and names the 3090 correctly. Both 322-file source manifests match before/after on Windows and locally; Cargo rebuilt XCL for both snapshots. No additional runtime change or competing PR. **Not tested** — full workspace suite, retail smoke/world entry, performance, the reversed stale-remap interleaving independently, or the separate submitted-GPU-work/cross-queue lifetime hazards in #1897 point 1 / #594 / #799. This fills the NVIDIA gap for the deterministic restoration/unmap case; it is not a merge-readiness or gameplay claim. **AI use** — Codex (GPT-6) reviewed the change, prepared the control, ran and verified the native comparison, and wrote this report. The runtime fix and regression are the PR author's.
Mustafaiq1998x commented 2026-11-25 03:05:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Mustafaiq1998x on 2026-11-25T02:50:52Z.


Independent RTX 3090 check of exact 3ff98937f3bb94820b23b582355920c0396a6225: the deterministic stale-unmap regression reproduces without the state checks and passes with your unchanged fix.

Tested — Windows 10 Home 19045, Ryzen 7 7800X3D, RTX 3090 driver 591.74 (32.0.15.9174), Rust/Cargo 1.98.1 x64 MSVC, DXC 1.8.2502.11, debug, XCL_ADAPTER=3090.

cargo test --locked -p xcl --lib -- stale_unmap_after_texture_restoration overlapping_placements_retire_superseded_entries placed_title_textures_share_vram_and_preserve_pixels --test-threads=1 --show-output

Snapshot Passed / failed / ignored Explicit skips Restored texture
Head with only the two mapping helpers restored to unconditional unmap/remap 2 / 1 / 0 1 active=true mapped=false
Unmodified head 3 / 0 / 0 1 active=true mapped=true
The negative control is the same head with identical author tests, not a parent checkout. The focused test prints NVIDIA GeForce RTX 3090. Positive initial/restored/control texture-copy readbacks all match the expected contents, and STALE_UNMAP_CONTROL unmap=true remap=true pixels=true / STALE_UNMAP_PIXELS_PASS are present. The negative test stops before reading the known-unmapped texture. The placement-table unit control passes both.

The explicit skip in each run is placed_title_textures_share_vram_and_preserve_pixels: this adapter makes no reserved cube with mips. It returns before its streaming/pixel controls, so those are not coverage. That existing test uses EnumAdapters1(0), not the XCL_ADAPTER selector; I cannot attribute its skip to the 3090 from its log. The new stale-unmap test selects and names the 3090 correctly.

Both 322-file source manifests match before/after on Windows and locally; Cargo rebuilt XCL for both snapshots. No additional runtime change or competing PR.

Not tested — full workspace suite, retail smoke/world entry, performance, the reversed stale-remap interleaving independently, or the separate submitted-GPU-work/cross-queue lifetime hazards in #1897 point 1 / #594 / #799. This fills the NVIDIA gap for the deterministic restoration/unmap case; it is not a merge-readiness or gameplay claim.

AI use — Codex (GPT-6) reviewed the change, prepared the control, ran and verified the native comparison, and wrote this report. The runtime fix and regression are the PR author's.

Thank you for independently reproducing and verifying the fix on the RTX 3090.

Would you also be able to perform the required paired retail-title smoke tests on main and commit 3ff98937f3?

I currently don't have a compatible unpacked retail title available. Your assistance would help satisfy the remaining PR regression requirement.

<!-- greyfinch-sync:ivall/xcl:comment:7151264036 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2065#issuecomment-7151264036). Originally posted by [Mustafaiq1998x](https://github.com/Mustafaiq1998x) on 2026-11-25T02:50:52Z. --- > Independent RTX 3090 check of exact `3ff98937f3bb94820b23b582355920c0396a6225`: the deterministic stale-unmap regression reproduces without the state checks and passes with your unchanged fix. > > **Tested** — Windows 10 Home 19045, Ryzen 7 7800X3D, RTX 3090 driver 591.74 (`32.0.15.9174`), Rust/Cargo 1.98.1 x64 MSVC, DXC 1.8.2502.11, debug, `XCL_ADAPTER=3090`. > > ``` > cargo test --locked -p xcl --lib -- stale_unmap_after_texture_restoration overlapping_placements_retire_superseded_entries placed_title_textures_share_vram_and_preserve_pixels --test-threads=1 --show-output > ``` > > Snapshot Passed / failed / ignored Explicit skips Restored texture > Head with only the two mapping helpers restored to unconditional unmap/remap 2 / 1 / 0 1 `active=true mapped=false` > Unmodified head 3 / 0 / 0 1 `active=true mapped=true` > The negative control is the same head with identical author tests, **not a parent checkout**. The focused test prints `NVIDIA GeForce RTX 3090`. Positive initial/restored/control texture-copy readbacks all match the expected contents, and `STALE_UNMAP_CONTROL unmap=true remap=true pixels=true` / `STALE_UNMAP_PIXELS_PASS` are present. The negative test stops before reading the known-unmapped texture. The placement-table unit control passes both. > > The explicit skip in each run is `placed_title_textures_share_vram_and_preserve_pixels: this adapter makes no reserved cube with mips`. It returns before its streaming/pixel controls, so those are **not coverage**. That existing test uses `EnumAdapters1(0)`, not the `XCL_ADAPTER` selector; I cannot attribute its skip to the 3090 from its log. The new stale-unmap test selects and names the 3090 correctly. > > Both 322-file source manifests match before/after on Windows and locally; Cargo rebuilt XCL for both snapshots. No additional runtime change or competing PR. > > **Not tested** — full workspace suite, retail smoke/world entry, performance, the reversed stale-remap interleaving independently, or the separate submitted-GPU-work/cross-queue lifetime hazards in #1897 point 1 / #594 / #799. This fills the NVIDIA gap for the deterministic restoration/unmap case; it is not a merge-readiness or gameplay claim. > > **AI use** — Codex (GPT-6) reviewed the change, prepared the control, ran and verified the native comparison, and wrote this report. The runtime fix and regression are the PR author's. Thank you for independently reproducing and verifying the fix on the RTX 3090. Would you also be able to perform the required paired retail-title smoke tests on main and commit 3ff98937f3bb94820b23b582355920c0396a6225? I currently don't have a compatible unpacked retail title available. Your assistance would help satisfy the remaining PR regression requirement.
DavidM1911 commented 2026-11-25 05:08:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T04:55:18Z.


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!

<!-- greyfinch-sync:ivall/xcl:comment:7153284381 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2065#issuecomment-7153284381). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T04:55:18Z. --- 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!
dhillonjagdeep650-boop commented 2026-11-25 07:05:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by dhillonjagdeep650-boop on 2026-11-25T06:17:19Z.


Regression pair for 3ff9893 on a retail title, with the world-load path: RTX 3080 Ti, 180 s each, played by hand through the menus. No crash and no device removal on either side. One of three shorter runs of this head ended in the known null write at +0x2215c35; details below.

Corrected 2026-11-25: I first wrote that the 60 s runs had no input, left one base run out, and said the title stops because pipelines compile cold, which I had not shown. The logs show a controller press in four of the six; the list below has all six.

Tested

  • NVIDIA GeForce RTX 3080 Ti 12 GB (32-lane waves), driver 617.42 (32.0.16.1742); Ryzen 7 5800X; 48 GB RAM; Windows 11 Pro 26300.9974; rustc 1.98.1 msvc; DXC 1.8.2502.11 (Windows SDK 10.0.26100.0); release builds
  • PR head 3ff98937f3bb94820b23b582355920c0396a6225 as it is, and its base cbc296ab65a2661a61e3e2da109134bcd5319f60 (a commit of main), clean trees
  • scripts/smoke.ps1 -Game <retail title> -Seconds 180, the base first. Each run started from the same copy of the title's data and of the DXIL cache. A person played both runs from the menus towards the world, so the two are not frame-for-frame the same input:
xcl-smoke v1
commit: cbc296ab65a2661a61e3e2da109134bcd5319f60
gpu: NVIDIA GeForce RTX 3080 Ti
title: ab97764d
seconds: 180
exit: 0x0
frames shown: 1495 (PresentX 1495)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 30185 MB
xcl-smoke v1
commit: 3ff98937f3bb94820b23b582355920c0396a6225
gpu: NVIDIA GeForce RTX 3080 Ti
title: ab97764d
seconds: 180
exit: 0x0
frames shown: 2230 (PresentX 2230)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 30841 MB
  • Both runs go past the menus (12 299 draws with translated pipelines on the base, 22 355 on the head) and then stop presenting, at about 90 s on the base and 108 s on the head, with 0 submits; neither gets further in 180 s. That is the same on both sides. Compute pipelines compile cold in that time (#2088), but I have not established that this is what the title waits for
  • Shorter runs, -Seconds 60, no title data. Input was not controlled: a person was at the PC, and the log has the time of the first press of A:
run frames shown first press end
base 1 434 52 s exit 0x0 (nothing presented from 22 to 48 s)
base 2 769 34 s exit 0x0
base 3 699 34 s ended by XCL_RUN_SECONDS (frames from its log; no smoke block, I had stopped the script)
head 1 - none unhandled exception 0xc0000005 in game_scarlett_master.exe+0x2215c35 (write at address 0x0) at 55 s
head 2 718 39 s exit 0x0
head 3 1005 none exit 0x0

The crash came with no fence time-out in its log, and its address is the one in #232 and #746, which are reported on main. Three runs a side, with different input, cannot say whether this change makes it more likely

Not tested

  • The suite and the new stale_unmap_after_texture_restoration test on this card
  • A run that reaches the world itself: both stop presenting before it
  • AMD and Intel GPUs

AI use: Claude Code with Claude Fable 5.2 built both trees, ran the scripts and wrote this report; a person played the 180 s runs. Claude Opus 5.5 wrote the correction.

<!-- greyfinch-sync:ivall/xcl:comment:7154636173 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2065#issuecomment-7154636173). Originally posted by [dhillonjagdeep650-boop](https://github.com/dhillonjagdeep650-boop) on 2026-11-25T06:17:19Z. --- **Regression pair for `3ff9893` on a retail title, with the world-load path: RTX 3080 Ti, 180 s each, played by hand through the menus. No crash and no device removal on either side. One of three shorter runs of this head ended in the known null write at `+0x2215c35`; details below.** *Corrected 2026-11-25: I first wrote that the 60 s runs had no input, left one base run out, and said the title stops because pipelines compile cold, which I had not shown. The logs show a controller press in four of the six; the list below has all six.* **Tested** - NVIDIA GeForce RTX 3080 Ti 12 GB (32-lane waves), driver 617.42 (32.0.16.1742); Ryzen 7 5800X; 48 GB RAM; Windows 11 Pro 26300.9974; rustc 1.98.1 msvc; DXC 1.8.2502.11 (Windows SDK 10.0.26100.0); release builds - PR head `3ff98937f3bb94820b23b582355920c0396a6225` as it is, and its base `cbc296ab65a2661a61e3e2da109134bcd5319f60` (a commit of `main`), clean trees - `scripts/smoke.ps1 -Game <retail title> -Seconds 180`, the base first. Each run started from the same copy of the title's data and of the DXIL cache. A person played both runs from the menus towards the world, so the two are not frame-for-frame the same input: ``` xcl-smoke v1 commit: cbc296ab65a2661a61e3e2da109134bcd5319f60 gpu: NVIDIA GeForce RTX 3080 Ti title: ab97764d seconds: 180 exit: 0x0 frames shown: 1495 (PresentX 1495) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 30185 MB ``` ``` xcl-smoke v1 commit: 3ff98937f3bb94820b23b582355920c0396a6225 gpu: NVIDIA GeForce RTX 3080 Ti title: ab97764d seconds: 180 exit: 0x0 frames shown: 2230 (PresentX 2230) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 30841 MB ``` - Both runs go past the menus (12 299 draws with translated pipelines on the base, 22 355 on the head) and then stop presenting, at about 90 s on the base and 108 s on the head, with 0 submits; neither gets further in 180 s. That is the same on both sides. Compute pipelines compile cold in that time (#2088), but I have not established that this is what the title waits for - Shorter runs, `-Seconds 60`, no title data. Input was not controlled: a person was at the PC, and the log has the time of the first press of A: | run | frames shown | first press | end | |---|---|---|---| | base 1 | 434 | 52 s | exit 0x0 (nothing presented from 22 to 48 s) | | base 2 | 769 | 34 s | exit 0x0 | | base 3 | 699 | 34 s | ended by `XCL_RUN_SECONDS` (frames from its log; no smoke block, I had stopped the script) | | head 1 | - | none | `unhandled exception 0xc0000005 in game_scarlett_master.exe+0x2215c35 (write at address 0x0)` at 55 s | | head 2 | 718 | 39 s | exit 0x0 | | head 3 | 1005 | none | exit 0x0 | The crash came with no fence time-out in its log, and its address is the one in #232 and #746, which are reported on `main`. Three runs a side, with different input, cannot say whether this change makes it more likely **Not tested** - The suite and the new `stale_unmap_after_texture_restoration` test on this card - A run that reaches the world itself: both stop presenting before it - AMD and Intel GPUs AI use: Claude Code with Claude Fable 5.2 built both trees, ran the scripts and wrote this report; a person played the 180 s runs. Claude Opus 5.5 wrote the correction.
github-actions[bot] commented 2026-11-29 07:40:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:40:48Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7252622744 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2065#issuecomment-7252622744). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T07:40:48Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 07:16:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:16:45Z.


Triage (#1607) – head 3ff9893

No open or merged PR fixes point 2 of #1897. Main's register / retire_overlapping / forget in title_textures.rs still drop TEXTURES before vram::unmap_superseded / remap_if_unmapped.
To check: unmap_superseded_all / remap_restored_all now hold TEXTURES while vram takes PAGES and issues UpdateTileMappings / pages.bind. That fixes the lock order to TEXTURES -> PAGES, and any path that releases a hooked resource or reaches forget under PAGES would now deadlock. Main's vram.rs has grown by ~4.4k lines since this base, so the order needs checking again after the rebase.
Point 1 of #1897 (no wait on title queues before the null-mapping) is not addressed, as the description says.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7303861344 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2065#issuecomment-7303861344). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T07:16:45Z. --- **Triage (#1607)** – head 3ff9893 No open or merged PR fixes point 2 of #1897. Main's `register` / `retire_overlapping` / `forget` in `title_textures.rs` still drop `TEXTURES` before `vram::unmap_superseded` / `remap_if_unmapped`. To check: `unmap_superseded_all` / `remap_restored_all` now hold `TEXTURES` while `vram` takes `PAGES` and issues `UpdateTileMappings` / `pages.bind`. That fixes the lock order to TEXTURES -> PAGES, and any path that releases a hooked resource or reaches `forget` under `PAGES` would now deadlock. Main's `vram.rs` has grown by ~4.4k lines since this base, so the order needs checking again after the rebase. Point 1 of #1897 (no wait on title queues before the null-mapping) is not addressed, as the description says. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2065:upstream-pr/2065'
git switch 'upstream-pr/2065'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2065'
git switch 'upstream-pr/2065'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2065'
git switch 'upstream-pr/2065'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2065'
git switch 'main'
git merge --squash 'upstream-pr/2065'
git switch 'main'
git merge --ff-only 'upstream-pr/2065'
git switch 'main'
git merge 'upstream-pr/2065'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2055
No description provided.