D3D12.X: look for superseded targets in every declared table range #3443

Open
Lakanya wants to merge 1 commit from upstream-pr/3443 into main
Lakanya commented 2026-11-29 17:57:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Lakanya on 2026-11-29T17:57:15Z.


A superseded target bound through a descriptor table is remapped when a draw or dispatch binds the table (#3179), but only the first 256 slots of each table were read. A view further in – a bindless SRV range, or a range at an explicit offset past slot 256 – was never seen, so that target kept no tiles: its writes were dropped and its reads returned zeros. This reads the SRV and UAV ranges each table's root signature declares instead, wherever they lie in the table, and only those. Follow-up to #3179.

What is in it (one commit)

  • crates/xcl/src/hle/d3d12x/console_list.rs: Layout::table_ranges, the SRV / UAV ranges of each descriptor-table parameter (RTS0 1.0 and 1.1 range layouts, OFFSET_APPEND and unbounded ranges). CBV and sampler ranges cannot name a placed target and are left out.
  • crates/xcl/src/hle/d3d12x/bind.rs: note_superseded_in_tables scans those ranges in chunks of 256 slots. An unbounded range ends with the view heap the table lies in; outside any view heap it has no known extent and is not read. The scan is scan_superseded_in_tables_with, with the memory and heap lookups passed in so it can be tested without a device.
  • crates/xcl/src/hle/d3d12x/console_heap.rs: view_heap_remaining_slots, the slots from an address to the end of its view heap (no shared-heap page is allocated by asking).
  • Tests: descriptor_tables_keep_their_srv_and_uav_ranges (both RTS0 versions: appended, unbounded and explicit-offset ranges, CBV / sampler ranges skipped) and superseded_targets_are_found_in_every_declared_table_range (a target at slot 300 is found – the old 256-slot scan never read it –, slots between declared ranges are not read, unbounded ranges stop at the view heap's end, and are not read outside one).

Tested

  • NVIDIA GeForce RTX 5070 Laptop GPU 8 GB (driver 617.71), AMD Ryzen AI 7 350, Windows 11 Pro build 26300, Rust 1.100.0; tests and runs in release.
  • cargo test --release --workspace --no-fail-fast -- --test-threads=4 on 7afecf84: the integration harnesses 139 passed, 0 failed, 20 ignored (4 e2e tests first failed only because xcl_testtitle.exe was not built; after cargo build --release --workspace, cargo test --release -p xcl --test e2e: 5 passed, 0 failed).
  • The library harness ends early on this PR and on main 0fe06eb0 alike: two tests end the process (0x80004005): gpu::recomp::dxc::private_heap_tests::failed_private_heap_compiler_falls_back_to_dxc_create_instance, and one whose title reaches end_title ("sparse upload preparation still failed after bounded retries"). Counts before they do:
    • --test-threads=1: 962 passed, 0 failed, 24 ignored, on this PR and on main;
    • --test-threads=4 --skip failed_private_heap_compiler_falls_back_to_dxc_create_instance: 1078 passed, 0 failed on this PR, 1070 passed, 0 failed on main.
  • The modules this PR changes, on their own: cargo test --release -p xcl --lib -- hle::d3d12x::console_list:: hle::d3d12x::console_heap:: hle::d3d12x::placements:: hle::d3d12x::bind::: 166 passed, 0 failed, 0 ignored, the two new tests among them.
  • SKIPPED on this adapter: 25 lines, the same on both: 22 "no wave64", 3 per-lane f16 / f32 forms refused (#1426 semantics). None is a test of this PR.

Regression run

scripts/smoke.ps1 -Game <retail title> -Seconds 600, each tree's own script and release build, the same environment for both (the title's Series S profile, XCL_DIRECT_DXIL=1, XCL_SPARSE_LAZY=1, XCL_TEXTURE_LEVEL_PAGES=1, XCL_PREPARE=1 with a warm cache, scripted A presses). A run of this PR's head came first to fill the translation cache (cold); not pasted.

main:

xcl-smoke v1
commit: 0fe06eb0f05459007ebfffc67bb9983acb3a832d
gpu: NVIDIA GeForce RTX 5070 Laptop GPU
title: 2c508222
seconds: 600
exit: 0x0
frames shown: 2031 (PresentX 2031)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 29889 MB

this PR's head:

xcl-smoke v1
commit: 7afecf845184279013bac99796d4d5b0417d6e4e
gpu: NVIDIA GeForce RTX 5070 Laptop GPU
title: 2c508222
seconds: 600
exit: 0x0
frames shown: 17866 (PresentX 17866)
presents per 2 s (last 3): 60 60 61
device removals: 0
crashes: 0
peak commit: 13060 MB

Not tested

  • Whether the retail title binds a superseded target past slot 256 of a table: its logs show superseded targets being used again, but not where in a table their views are.
  • The two smoke runs do not reach the draws this PR changes, and did not take the same path: on this 8 GB card the main run stopped presenting at world loading (frame ~2,000, video memory over budget) until its time ran out; this PR's run stayed in the intro video and menus at 30 fps for its 600 s. Both ended without a crash or device removal. They check that nothing breaks, not the change itself.
  • AMD, other NVIDIA cards, wave64 GPUs.

AI use

  • Claude Code (Claude Opus 5.5): wrote the change and its tests, ran the test suite and the regression runs, and wrote this description.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5553485367 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3443). Originally posted by [Lakanya](https://github.com/Lakanya) on 2026-11-29T17:57:15Z. --- A superseded target bound through a descriptor table is remapped when a draw or dispatch binds the table (#3179), but only the first 256 slots of each table were read. A view further in – a bindless SRV range, or a range at an explicit offset past slot 256 – was never seen, so that target kept no tiles: its writes were dropped and its reads returned zeros. This reads the SRV and UAV ranges each table's root signature declares instead, wherever they lie in the table, and only those. Follow-up to #3179. **What is in it** (one commit) - `crates/xcl/src/hle/d3d12x/console_list.rs`: `Layout::table_ranges`, the SRV / UAV ranges of each descriptor-table parameter (RTS0 1.0 and 1.1 range layouts, `OFFSET_APPEND` and unbounded ranges). CBV and sampler ranges cannot name a placed target and are left out. - `crates/xcl/src/hle/d3d12x/bind.rs`: `note_superseded_in_tables` scans those ranges in chunks of 256 slots. An unbounded range ends with the view heap the table lies in; outside any view heap it has no known extent and is not read. The scan is `scan_superseded_in_tables_with`, with the memory and heap lookups passed in so it can be tested without a device. - `crates/xcl/src/hle/d3d12x/console_heap.rs`: `view_heap_remaining_slots`, the slots from an address to the end of its view heap (no shared-heap page is allocated by asking). - Tests: `descriptor_tables_keep_their_srv_and_uav_ranges` (both RTS0 versions: appended, unbounded and explicit-offset ranges, CBV / sampler ranges skipped) and `superseded_targets_are_found_in_every_declared_table_range` (a target at slot 300 is found – the old 256-slot scan never read it –, slots between declared ranges are not read, unbounded ranges stop at the view heap's end, and are not read outside one). **Tested** - NVIDIA GeForce RTX 5070 Laptop GPU 8 GB (driver 617.71), AMD Ryzen AI 7 350, Windows 11 Pro build 26300, Rust 1.100.0; tests and runs in release. - `cargo test --release --workspace --no-fail-fast -- --test-threads=4` on `7afecf84`: the integration harnesses 139 passed, 0 failed, 20 ignored (4 e2e tests first failed only because `xcl_testtitle.exe` was not built; after `cargo build --release --workspace`, `cargo test --release -p xcl --test e2e`: 5 passed, 0 failed). - The library harness ends early on this PR and on `main` `0fe06eb0` alike: two tests end the process (`0x80004005`): `gpu::recomp::dxc::private_heap_tests::failed_private_heap_compiler_falls_back_to_dxc_create_instance`, and one whose title reaches `end_title` ("sparse upload preparation still failed after bounded retries"). Counts before they do: - `--test-threads=1`: 962 passed, 0 failed, 24 ignored, on this PR and on `main`; - `--test-threads=4 --skip failed_private_heap_compiler_falls_back_to_dxc_create_instance`: 1078 passed, 0 failed on this PR, 1070 passed, 0 failed on `main`. - The modules this PR changes, on their own: `cargo test --release -p xcl --lib -- hle::d3d12x::console_list:: hle::d3d12x::console_heap:: hle::d3d12x::placements:: hle::d3d12x::bind::`: 166 passed, 0 failed, 0 ignored, the two new tests among them. - `SKIPPED` on this adapter: 25 lines, the same on both: 22 "no wave64", 3 per-lane f16 / f32 forms refused (#1426 semantics). None is a test of this PR. **Regression run** `scripts/smoke.ps1 -Game <retail title> -Seconds 600`, each tree's own script and release build, the same environment for both (the title's Series S profile, `XCL_DIRECT_DXIL=1`, `XCL_SPARSE_LAZY=1`, `XCL_TEXTURE_LEVEL_PAGES=1`, `XCL_PREPARE=1` with a warm cache, scripted A presses). A run of this PR's head came first to fill the translation cache (cold); not pasted. main: ``` xcl-smoke v1 commit: 0fe06eb0f05459007ebfffc67bb9983acb3a832d gpu: NVIDIA GeForce RTX 5070 Laptop GPU title: 2c508222 seconds: 600 exit: 0x0 frames shown: 2031 (PresentX 2031) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 29889 MB ``` this PR's head: ``` xcl-smoke v1 commit: 7afecf845184279013bac99796d4d5b0417d6e4e gpu: NVIDIA GeForce RTX 5070 Laptop GPU title: 2c508222 seconds: 600 exit: 0x0 frames shown: 17866 (PresentX 17866) presents per 2 s (last 3): 60 60 61 device removals: 0 crashes: 0 peak commit: 13060 MB ``` **Not tested** - Whether the retail title binds a superseded target past slot 256 of a table: its logs show superseded targets being used again, but not where in a table their views are. - The two smoke runs do not reach the draws this PR changes, and did not take the same path: on this 8 GB card the `main` run stopped presenting at world loading (frame ~2,000, video memory over budget) until its time ran out; this PR's run stayed in the intro video and menus at 30 fps for its 600 s. Both ended without a crash or device removal. They check that nothing breaks, not the change itself. - AMD, other NVIDIA cards, wave64 GPUs. **AI use** - Claude Code (Claude Opus 5.5): wrote the change and its tests, ran the test suite and the regression runs, and wrote this description. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
andrewDoing commented 2026-11-29 18:18:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by andrewDoing on 2026-11-29T18:18:04Z.


I tested the descriptor scan on 7afecf845184279013bac99796d4d5b0417d6e4e with an RTX 5070 12 GB (616.92), Ryzen 7 5700X3D, Windows 11 26300.10075 and Rust 1.100.0, debug. The synthetic fixture registered a real sparse-backed 73,727-slot view heap, created console SRVs through the production writer, and overlapped two R32_FLOAT render targets by one 64 KiB page.

  • With the unmapped target's SRV at zero-based slot 73,726, the scan from main 0fe06eb0 left it unmapped. On the PR, a declared one-slot range at offset 73,726 and an unbounded range from slot zero each remapped it in fresh processes. A 256-slot range on the PR left it unmapped. After remapping, native compute readback returned 0.25 and 0.75 through the two real descriptors after distinct clears.
  • There is a CPU cost case worth checking in release. While the same superseded target remained live but had no descriptor in the table, the first 512 slots held valid SRVs of the other target. The remaining slots were empty. Over 240 interleaved samples per case in each of three processes, the main 256-slot scan took 69.0–69.2 µs median, the PR's 256-slot range took 69.1–69.6 µs, and the PR's unbounded range took 3.49–3.53 ms. Unbounded p95 was 3.80–4.10 ms. This is time inside the production scan, with main's scan body copied into the same test executable for comparison. The unbounded path visits about 2.25 MiB of descriptor shadow per call while an unrelated target keeps the superseded gate open.

I repeated the CPU comparison in three fresh processes with the XCL crate compiled at opt-level=2 (cargo --config profile.test.package.xcl.opt-level=2 test …). Main and the PR's 256-slot range took 8.2–8.4 µs median. The PR's unbounded miss took 382–387 µs median and 440–532 µs p95. All three processes reproduced the same native readback.

I ran cargo test --offline --locked -p xcl --lib -- hle::d3d12x::bind::probe3443::native_wide_table hle::d3d12x::bind::tests::superseded_targets_are_found_in_every_declared_table_range hle::d3d12x::console_list::tests::descriptor_tables_keep_their_srv_and_uav_ranges --exact --test-threads=1 --nocapture with XCL_ADAPTER=5070 XCL_COHERENT_CAP_MB=512. Each process passed all three selected tests with zero skips. The full release profile, frequency of wide misses in a title, preservation of pre-eviction contents, and gameplay impact remain unmeasured. A release capture of scan count and scanned slots while the gate is open would tell whether to optimize this before shipping. Codex with GPT-6.2 Sol adapted the test-only fixture and ran the controls.

<!-- greyfinch-sync:ivall/xcl:comment:7260372489 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3443#issuecomment-7260372489). Originally posted by [andrewDoing](https://github.com/andrewDoing) on 2026-11-29T18:18:04Z. --- I tested the descriptor scan on `7afecf845184279013bac99796d4d5b0417d6e4e` with an RTX 5070 12 GB (616.92), Ryzen 7 5700X3D, Windows 11 26300.10075 and Rust 1.100.0, debug. The synthetic fixture registered a real sparse-backed 73,727-slot view heap, created console SRVs through the production writer, and overlapped two R32_FLOAT render targets by one 64 KiB page. - With the unmapped target's SRV at zero-based slot **73,726**, the scan from main `0fe06eb0` left it unmapped. On the PR, a declared one-slot range at offset 73,726 and an unbounded range from slot zero each remapped it in fresh processes. A 256-slot range on the PR left it unmapped. After remapping, native compute readback returned **0.25 and 0.75** through the two real descriptors after distinct clears. - There is a CPU cost case worth checking in release. While the same superseded target remained live but had no descriptor in the table, the first 512 slots held valid SRVs of the other target. The remaining slots were empty. Over 240 interleaved samples per case in each of three processes, the main 256-slot scan took **69.0–69.2 µs median**, the PR's 256-slot range took **69.1–69.6 µs**, and the PR's unbounded range took **3.49–3.53 ms**. Unbounded p95 was **3.80–4.10 ms**. This is time inside the production scan, with main's scan body copied into the same test executable for comparison. The unbounded path visits about 2.25 MiB of descriptor shadow per call while an unrelated target keeps the superseded gate open. I repeated the CPU comparison in three fresh processes with the XCL crate compiled at `opt-level=2` (`cargo --config profile.test.package.xcl.opt-level=2 test …`). Main and the PR's 256-slot range took **8.2–8.4 µs median**. The PR's unbounded miss took **382–387 µs median** and **440–532 µs p95**. All three processes reproduced the same native readback. I ran `cargo test --offline --locked -p xcl --lib -- hle::d3d12x::bind::probe3443::native_wide_table hle::d3d12x::bind::tests::superseded_targets_are_found_in_every_declared_table_range hle::d3d12x::console_list::tests::descriptor_tables_keep_their_srv_and_uav_ranges --exact --test-threads=1 --nocapture` with `XCL_ADAPTER=5070 XCL_COHERENT_CAP_MB=512`. Each process passed all three selected tests with zero skips. The full release profile, frequency of wide misses in a title, preservation of pre-eviction contents, and gameplay impact remain unmeasured. A release capture of scan count and scanned slots while the gate is open would tell whether to optimize this before shipping. Codex with GPT-6.2 Sol adapted the test-only fixture and ran the controls.
Foniass commented 2026-12-01 09:22:55 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:22:55Z.


merge-check
base: 7d86c5d2b7
head: 7afecf8451
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2898 passed, 0 failed, 51 ignored; SKIPPED: 28 (20 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 no heap windows, 1 cannot disable the driver cache, 3 others; the same set as on main); failing: none
review: read the whole diff (+192/-23). Findings: (1) Per-bind cost has no bound. An unbounded range (the usual bindless SRV table) is now read to the end of its view heap (bind.rs ~1346-1350, heap_rem - start), on every draw and dispatch bind while any target is superseded (XCL_PLACE_RETIRE is on by default). Main reads 256 slots (8 KB) per table. A heap of 1M descriptors is 32 MB read per bind, and every T# found takes note_use's registry lock. Nothing measures this. Capping it, or keeping a per-heap index of the slots that name superseded targets, would bound it. (2) More stale views get remapped. Every T# in the range counts as a use, including views the title left in the heap for an aliased transient target it no longer samples. Those targets are mapped again (note_use -> map_again), which brings back the tile sharing that supersession removes. The 256-slot scan had the same weakness on a smaller window. Reasoned only. (3) Nothing shows a case that needs it: no issue is linked, the description says it is unknown whether the title binds a superseded target past slot 256, and its smoke runs don't reach the draws it changes. (4) Minor: view_heap_remaining_slots has no test of its own (the bind.rs test passes a closure), and overlapping declared ranges are read twice. Fine: RTS0 1.0 / 1.1 range layouts (20 / 24 bytes, offset at +16 / +20) and OFFSET_APPEND are parsed correctly, CBV and sampler ranges are skipped, clipping at the heap end is right, the 8 KB stack buffer is reused (no allocation per bind), and the ranges are parsed once per root signature.
performance: 60 s smoke of a retail title, main 7d86c5d2 vs this merge (7cd8991a): 1663 -> 1668 frames shown (100 %; last presents per 2 s: 60 60 60), peak commit 17153 -> 17480 MB, 0 device removals, 0 crashes. This run's log has no supersession at all in 60 s, so it doesn't reach the changed scan; it's a boot regression check only.
verdict: not yet: an unbounded range is now read to the end of its view heap on every bind while any target is superseded (finding 1), with nothing measuring that cost or showing a title that needs it; bound the scan, or show the cost on a run that reaches superseded targets
hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5

AI-written and posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7306617880 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3443#issuecomment-7306617880). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T09:22:55Z. --- merge-check base: 7d86c5d2b7845695031eeea1327aa81b6c439323 head: 7afecf845184279013bac99796d4d5b0417d6e4e merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2898 passed, 0 failed, 51 ignored; SKIPPED: 28 (20 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 no heap windows, 1 cannot disable the driver cache, 3 others; the same set as on main); failing: none review: read the whole diff (+192/-23). Findings: (1) **Per-bind cost has no bound.** An unbounded range (the usual bindless SRV table) is now read to the end of its view heap (`bind.rs` ~1346-1350, `heap_rem - start`), on every draw and dispatch bind while any target is superseded (`XCL_PLACE_RETIRE` is on by default). Main reads 256 slots (8 KB) per table. A heap of 1M descriptors is 32 MB read per bind, and every T# found takes `note_use`'s registry lock. Nothing measures this. Capping it, or keeping a per-heap index of the slots that name superseded targets, would bound it. (2) **More stale views get remapped.** Every T# in the range counts as a use, including views the title left in the heap for an aliased transient target it no longer samples. Those targets are mapped again (`note_use` -> `map_again`), which brings back the tile sharing that supersession removes. The 256-slot scan had the same weakness on a smaller window. Reasoned only. (3) Nothing shows a case that needs it: no issue is linked, the description says it is unknown whether the title binds a superseded target past slot 256, and its smoke runs don't reach the draws it changes. (4) Minor: `view_heap_remaining_slots` has no test of its own (the bind.rs test passes a closure), and overlapping declared ranges are read twice. Fine: RTS0 1.0 / 1.1 range layouts (20 / 24 bytes, offset at +16 / +20) and `OFFSET_APPEND` are parsed correctly, CBV and sampler ranges are skipped, clipping at the heap end is right, the 8 KB stack buffer is reused (no allocation per bind), and the ranges are parsed once per root signature. performance: 60 s smoke of a retail title, main 7d86c5d2 vs this merge (7cd8991a): 1663 -> 1668 frames shown (100 %; last presents per 2 s: 60 60 60), peak commit 17153 -> 17480 MB, 0 device removals, 0 crashes. This run's log has no supersession at all in 60 s, so it doesn't reach the changed scan; it's a boot regression check only. verdict: not yet: an unbounded range is now read to the end of its view heap on every bind while any target is superseded (finding 1), with nothing measuring that cost or showing a title that needs it; bound the scan, or show the cost on a run that reaches superseded targets hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5 AI-written and posted by Foniass without a human check of each point.
Foniass commented 2026-12-01 09:55:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:55:51Z.


Triage (#1607) – head 7afecf8

No open or merged PR makes the same change. #3395 shares most of these lines because it is stacked on this PR (its description says only its top commit bdf38bf4 belongs to it), so it is not a duplicate.
One thing to measure: scan_superseded_in_tables_with now reads an unbounded SRV/UAV range up to the end of its view heap on every draw/dispatch while placements::any_superseded() is true, and console_heap::view_heap_remaining_slots takes the HEAPS lock per table. With a bindless table over a large heap that is far more than the old fixed 8 KiB per table; a frame-time number with superseded targets live would settle it.
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:7307416223 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3443#issuecomment-7307416223). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T09:55:51Z. --- **Triage (#1607)** – head 7afecf8 No open or merged PR makes the same change. #3395 shares most of these lines because it is stacked on this PR (its description says only its top commit `bdf38bf4` belongs to it), so it is not a duplicate. One thing to measure: `scan_superseded_in_tables_with` now reads an unbounded SRV/UAV range up to the end of its view heap on every draw/dispatch while `placements::any_superseded()` is true, and `console_heap::view_heap_remaining_slots` takes the `HEAPS` lock per table. With a bindless table over a large heap that is far more than the old fixed 8 KiB per table; a frame-time number with superseded targets live would settle it. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
bmjask commented 2026-12-02 06:43:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-12-02T06:43:38Z.

Review: COMMENTED


Review of 7afecf84: 4 finding(s). 4 are inline.


These findings come from an AI-assisted review (Claude Code) and focus on correctness. Each is a candidate; please check it before acting on it.

<!-- greyfinch-sync:ivall/xcl:review:6145941481 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3443#pullrequestreview-6145941481). Originally posted by [bmjask](https://github.com/bmjask) on 2026-12-02T06:43:38Z. **Review:** COMMENTED --- Review of `7afecf84`: 4 finding(s). 4 are inline. --- _These findings come from an AI-assisted review (Claude Code) and focus on correctness. Each is a candidate; please check it before acting on it._
bmjask commented 2026-12-02 06:43:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-12-02T06:43:39Z.

Code review location: crates/xcl/src/hle/d3d12x/bind.rs; line 1346

@@ -1302,35 +1302,75 @@ pub(super) fn bound_pso(this: *mut c_void) -> usize {
     with(this, |s| s.pso)
 }
 
-/// Remap any superseded targets named in the first 256 slots of each descriptor table in `layout`
-/// / `args`. Only called when `placements::any_superseded()` is true.
+/// Remap any superseded targets named in the declared SRV/UAV descriptor ranges of `layout` /
+/// `args`. Only called when `placements::any_superseded()` is true.
 unsafe fn note_superseded_in_tables(u: &crate::gpu::uma::Uma, layout: Option<&Layout>, args: &[u8]) {
     let Some(layout) = layout else { return };
-    const TABLE_SLOTS: usize = 256;
-    let mut table = [0u8; TABLE_SLOTS * 32];
-    for p in &layout.params {
-        let Param::Table { at } = *p else { continue };
-        let at = at as usize;
+    scan_superseded_in_tables_with(
+        layout,
+        args,
+        u.base(),
+        super::console_heap::view_heap_remaining_slots,
+        |addr, len| u.in_committed_window(addr, len),
+        |addr, buf| super::title_textures::read_committed_into(addr, buf),
+        super::console_heap::named_by_index,
+        super::placements::note_use,
+    );
+}
+
+unsafe fn scan_superseded_in_tables_with(
+    layout: &Layout,
+    args: &[u8],
+    uma_base: usize,
+    mut heap_remaining: impl FnMut(usize) -> Option<usize>,
+    mut in_committed: impl FnMut(usize, usize) -> bool,
+    mut read_committed: impl FnMut(usize, &mut [u8]),
+    mut named_by_index: impl FnMut(u32) -> usize,
+    mut on_use: impl FnMut(usize),
+) {
+    const CHUNK_SLOTS: usize = 256;
+    let mut chunk = [0u8; CHUNK_SLOTS * 32];
+    for (at, ranges) in &layout.table_ranges {
+        let at = *at as usize;
         let Some(word) = args.get(at..at + 4) else { continue };
         let offset = u32::from_le_bytes(word.try_into().unwrap()) as usize;
         if offset == 0 {
             continue;
         }
-        let addr = u.base() + offset;
-        if u.in_committed_window(addr, table.len()) {
-            std::ptr::copy_nonoverlapping(addr as *const u8, table.as_mut_ptr(), table.len());
-        } else {
-            table.fill(0);
-            super::title_textures::read_committed_into(addr, &mut table);
-        }
-        for slot in table.chunks_exact(32) {
-            let index = u32::from_le_bytes(slot[..4].try_into().unwrap());
-            if slot[15] >> 4 < 8 || index == 0 {
-                continue;
-            }
-            let res = super::console_heap::named_by_index(index);
-            if res != 0 && res != super::console_heap::GONE {
-                super::placements::note_use(res);
+        let Some(table_base) = uma_base.checked_add(offset) else { continue };
+        let rem = heap_remaining(table_base);
+        for range in ranges {
+            let start = range.start as usize;
+            let total = match (rem, range.count) {
+                (Some(heap_rem), Some(c)) => (c as usize).min(heap_rem.saturating_sub(start)),
+                (Some(heap_rem), None) => heap_rem.saturating_sub(start),

An unbounded SRV/UAV range is now scanned to the end of its view heap on every draw and dispatch, where the old scan stopped at 256 slots. With the usual bindless table, SRV(t0, unbounded) at offset 0 of a ~1M-descriptor heap, and any target superseded (any_superseded() true), each bind copies ~32 MB of descriptors. It then calls named_by_index and placements::note_use for every live T#, taking the REGISTRY mutex up to 1M times per draw. A few thousand draws per frame drop the frame rate to near zero while anything is superseded. Aliased ranges (Texture2D[]/Texture3D[]/TextureCube[] all unbounded at offset 0 in different spaces) are kept separately (console_list.rs ~196), so the scan runs once per alias. Looking superseded resources up through console_heap's reverse map (NAMES.by) and testing their indexes against each table's slot interval would cost O(superseded) per bind instead.

<!-- greyfinch-sync:ivall/xcl:review-comment:4765731040 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3443#discussion_r4765731040). Originally posted by [bmjask](https://github.com/bmjask) on 2026-12-02T06:43:39Z. **Code review location:** `crates/xcl/src/hle/d3d12x/bind.rs`; line 1346 ~~~~diff @@ -1302,35 +1302,75 @@ pub(super) fn bound_pso(this: *mut c_void) -> usize { with(this, |s| s.pso) } -/// Remap any superseded targets named in the first 256 slots of each descriptor table in `layout` -/// / `args`. Only called when `placements::any_superseded()` is true. +/// Remap any superseded targets named in the declared SRV/UAV descriptor ranges of `layout` / +/// `args`. Only called when `placements::any_superseded()` is true. unsafe fn note_superseded_in_tables(u: &crate::gpu::uma::Uma, layout: Option<&Layout>, args: &[u8]) { let Some(layout) = layout else { return }; - const TABLE_SLOTS: usize = 256; - let mut table = [0u8; TABLE_SLOTS * 32]; - for p in &layout.params { - let Param::Table { at } = *p else { continue }; - let at = at as usize; + scan_superseded_in_tables_with( + layout, + args, + u.base(), + super::console_heap::view_heap_remaining_slots, + |addr, len| u.in_committed_window(addr, len), + |addr, buf| super::title_textures::read_committed_into(addr, buf), + super::console_heap::named_by_index, + super::placements::note_use, + ); +} + +unsafe fn scan_superseded_in_tables_with( + layout: &Layout, + args: &[u8], + uma_base: usize, + mut heap_remaining: impl FnMut(usize) -> Option<usize>, + mut in_committed: impl FnMut(usize, usize) -> bool, + mut read_committed: impl FnMut(usize, &mut [u8]), + mut named_by_index: impl FnMut(u32) -> usize, + mut on_use: impl FnMut(usize), +) { + const CHUNK_SLOTS: usize = 256; + let mut chunk = [0u8; CHUNK_SLOTS * 32]; + for (at, ranges) in &layout.table_ranges { + let at = *at as usize; let Some(word) = args.get(at..at + 4) else { continue }; let offset = u32::from_le_bytes(word.try_into().unwrap()) as usize; if offset == 0 { continue; } - let addr = u.base() + offset; - if u.in_committed_window(addr, table.len()) { - std::ptr::copy_nonoverlapping(addr as *const u8, table.as_mut_ptr(), table.len()); - } else { - table.fill(0); - super::title_textures::read_committed_into(addr, &mut table); - } - for slot in table.chunks_exact(32) { - let index = u32::from_le_bytes(slot[..4].try_into().unwrap()); - if slot[15] >> 4 < 8 || index == 0 { - continue; - } - let res = super::console_heap::named_by_index(index); - if res != 0 && res != super::console_heap::GONE { - super::placements::note_use(res); + let Some(table_base) = uma_base.checked_add(offset) else { continue }; + let rem = heap_remaining(table_base); + for range in ranges { + let start = range.start as usize; + let total = match (rem, range.count) { + (Some(heap_rem), Some(c)) => (c as usize).min(heap_rem.saturating_sub(start)), + (Some(heap_rem), None) => heap_rem.saturating_sub(start), ~~~~ --- An unbounded SRV/UAV range is now scanned to the end of its view heap on every draw and dispatch, where the old scan stopped at 256 slots. With the usual bindless table, SRV(t0, unbounded) at offset 0 of a ~1M-descriptor heap, and any target superseded (`any_superseded()` true), each bind copies ~32 MB of descriptors. It then calls `named_by_index` and `placements::note_use` for every live T#, taking the REGISTRY mutex up to 1M times per draw. A few thousand draws per frame drop the frame rate to near zero while anything is superseded. Aliased ranges (Texture2D[]/Texture3D[]/TextureCube[] all unbounded at offset 0 in different spaces) are kept separately (console_list.rs ~196), so the scan runs once per alias. Looking superseded resources up through console_heap's reverse map (NAMES.by) and testing their indexes against each table's slot interval would cost O(superseded) per bind instead.
bmjask commented 2026-12-02 06:43:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-12-02T06:43:39Z.

Code review location: crates/xcl/src/hle/d3d12x/bind.rs; line 1347

@@ -1302,35 +1302,75 @@ pub(super) fn bound_pso(this: *mut c_void) -> usize {
     with(this, |s| s.pso)
 }
 
-/// Remap any superseded targets named in the first 256 slots of each descriptor table in `layout`
-/// / `args`. Only called when `placements::any_superseded()` is true.
+/// Remap any superseded targets named in the declared SRV/UAV descriptor ranges of `layout` /
+/// `args`. Only called when `placements::any_superseded()` is true.
 unsafe fn note_superseded_in_tables(u: &crate::gpu::uma::Uma, layout: Option<&Layout>, args: &[u8]) {
     let Some(layout) = layout else { return };
-    const TABLE_SLOTS: usize = 256;
-    let mut table = [0u8; TABLE_SLOTS * 32];
-    for p in &layout.params {
-        let Param::Table { at } = *p else { continue };
-        let at = at as usize;
+    scan_superseded_in_tables_with(
+        layout,
+        args,
+        u.base(),
+        super::console_heap::view_heap_remaining_slots,
+        |addr, len| u.in_committed_window(addr, len),
+        |addr, buf| super::title_textures::read_committed_into(addr, buf),
+        super::console_heap::named_by_index,
+        super::placements::note_use,
+    );
+}
+
+unsafe fn scan_superseded_in_tables_with(
+    layout: &Layout,
+    args: &[u8],
+    uma_base: usize,
+    mut heap_remaining: impl FnMut(usize) -> Option<usize>,
+    mut in_committed: impl FnMut(usize, usize) -> bool,
+    mut read_committed: impl FnMut(usize, &mut [u8]),
+    mut named_by_index: impl FnMut(u32) -> usize,
+    mut on_use: impl FnMut(usize),
+) {
+    const CHUNK_SLOTS: usize = 256;
+    let mut chunk = [0u8; CHUNK_SLOTS * 32];
+    for (at, ranges) in &layout.table_ranges {
+        let at = *at as usize;
         let Some(word) = args.get(at..at + 4) else { continue };
         let offset = u32::from_le_bytes(word.try_into().unwrap()) as usize;
         if offset == 0 {
             continue;
         }
-        let addr = u.base() + offset;
-        if u.in_committed_window(addr, table.len()) {
-            std::ptr::copy_nonoverlapping(addr as *const u8, table.as_mut_ptr(), table.len());
-        } else {
-            table.fill(0);
-            super::title_textures::read_committed_into(addr, &mut table);
-        }
-        for slot in table.chunks_exact(32) {
-            let index = u32::from_le_bytes(slot[..4].try_into().unwrap());
-            if slot[15] >> 4 < 8 || index == 0 {
-                continue;
-            }
-            let res = super::console_heap::named_by_index(index);
-            if res != 0 && res != super::console_heap::GONE {
-                super::placements::note_use(res);
+        let Some(table_base) = uma_base.checked_add(offset) else { continue };
+        let rem = heap_remaining(table_base);
+        for range in ranges {
+            let start = range.start as usize;
+            let total = match (rem, range.count) {
+                (Some(heap_rem), Some(c)) => (c as usize).min(heap_rem.saturating_sub(start)),
+                (Some(heap_rem), None) => heap_rem.saturating_sub(start),
+                (None, Some(c)) => c as usize,

When the table is outside any registered view heap, a bounded range is scanned for its full declared count with no cap (the (None, Some(c)) arm). A root signature with a bounded bindless range (NumDescriptors = 1_000_000 or 0xFFFF_FFFE) whose table address isn't inside a registered heap sends every 256-slot chunk through read_committed_into, which does ReadProcessMemory plus a VirtualQuery walk per chunk. That's thousands to millions of syscalls per draw, which effectively hangs the render thread. The old code read 256 slots.

<!-- greyfinch-sync:ivall/xcl:review-comment:4765731047 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3443#discussion_r4765731047). Originally posted by [bmjask](https://github.com/bmjask) on 2026-12-02T06:43:39Z. **Code review location:** `crates/xcl/src/hle/d3d12x/bind.rs`; line 1347 ~~~~diff @@ -1302,35 +1302,75 @@ pub(super) fn bound_pso(this: *mut c_void) -> usize { with(this, |s| s.pso) } -/// Remap any superseded targets named in the first 256 slots of each descriptor table in `layout` -/// / `args`. Only called when `placements::any_superseded()` is true. +/// Remap any superseded targets named in the declared SRV/UAV descriptor ranges of `layout` / +/// `args`. Only called when `placements::any_superseded()` is true. unsafe fn note_superseded_in_tables(u: &crate::gpu::uma::Uma, layout: Option<&Layout>, args: &[u8]) { let Some(layout) = layout else { return }; - const TABLE_SLOTS: usize = 256; - let mut table = [0u8; TABLE_SLOTS * 32]; - for p in &layout.params { - let Param::Table { at } = *p else { continue }; - let at = at as usize; + scan_superseded_in_tables_with( + layout, + args, + u.base(), + super::console_heap::view_heap_remaining_slots, + |addr, len| u.in_committed_window(addr, len), + |addr, buf| super::title_textures::read_committed_into(addr, buf), + super::console_heap::named_by_index, + super::placements::note_use, + ); +} + +unsafe fn scan_superseded_in_tables_with( + layout: &Layout, + args: &[u8], + uma_base: usize, + mut heap_remaining: impl FnMut(usize) -> Option<usize>, + mut in_committed: impl FnMut(usize, usize) -> bool, + mut read_committed: impl FnMut(usize, &mut [u8]), + mut named_by_index: impl FnMut(u32) -> usize, + mut on_use: impl FnMut(usize), +) { + const CHUNK_SLOTS: usize = 256; + let mut chunk = [0u8; CHUNK_SLOTS * 32]; + for (at, ranges) in &layout.table_ranges { + let at = *at as usize; let Some(word) = args.get(at..at + 4) else { continue }; let offset = u32::from_le_bytes(word.try_into().unwrap()) as usize; if offset == 0 { continue; } - let addr = u.base() + offset; - if u.in_committed_window(addr, table.len()) { - std::ptr::copy_nonoverlapping(addr as *const u8, table.as_mut_ptr(), table.len()); - } else { - table.fill(0); - super::title_textures::read_committed_into(addr, &mut table); - } - for slot in table.chunks_exact(32) { - let index = u32::from_le_bytes(slot[..4].try_into().unwrap()); - if slot[15] >> 4 < 8 || index == 0 { - continue; - } - let res = super::console_heap::named_by_index(index); - if res != 0 && res != super::console_heap::GONE { - super::placements::note_use(res); + let Some(table_base) = uma_base.checked_add(offset) else { continue }; + let rem = heap_remaining(table_base); + for range in ranges { + let start = range.start as usize; + let total = match (rem, range.count) { + (Some(heap_rem), Some(c)) => (c as usize).min(heap_rem.saturating_sub(start)), + (Some(heap_rem), None) => heap_rem.saturating_sub(start), + (None, Some(c)) => c as usize, ~~~~ --- When the table is outside any registered view heap, a bounded range is scanned for its full declared count with no cap (the `(None, Some(c))` arm). A root signature with a bounded bindless range (NumDescriptors = 1_000_000 or 0xFFFF_FFFE) whose table address isn't inside a registered heap sends every 256-slot chunk through `read_committed_into`, which does ReadProcessMemory plus a VirtualQuery walk per chunk. That's thousands to millions of syscalls per draw, which effectively hangs the render thread. The old code read 256 slots.
bmjask commented 2026-12-02 06:43:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-12-02T06:43:39Z.

Code review location: crates/xcl/src/hle/d3d12x/console_list.rs; line 199

@@ -163,7 +174,34 @@ pub fn layout_from_blob(blob: &[u8]) -> Option<Layout> {
         let p = match ty {
             1 => Param::Constants { at: l.size, count: r(pay + 8)? },
             2..=4 => Param::Descriptor { at: l.size },
-            _ => Param::Table { at: l.size },
+            _ => {
+                if ty == 0 {
+                    let mut ranges = Vec::new();
+                    if let (Some(nr), Some(roff)) = (r(pay), r(pay + 4)) {
+                        let stride = if version >= 2 { 24usize } else { 20usize };
+                        let off_field = if version >= 2 { 20usize } else { 16usize };
+                        let mut next_offset = 0u32;
+                        for j in 0..nr as usize {
+                            let Some(base) = (roff as usize).checked_add(j.checked_mul(stride).unwrap_or(usize::MAX)) else { break };
+                            let (Some(rty), Some(num), Some(raw_off)) = (r(base), r(base + 4), r(base + off_field)) else { break };
+                            let start = if raw_off == u32::MAX { next_offset } else { raw_off };
+                            let count = if num == u32::MAX { None } else { Some(num) };
+                            next_offset = match count {
+                                Some(c) => start.saturating_add(c),
+                                None => u32::MAX,
+                            };
+                            // 0 = SRV, 1 = UAV (only views that can reference a placed target)
+                            if (rty == 0 || rty == 1) && num != 0 {
+                                ranges.push(TableRange { start, count });
+                            }
+                        }
+                    }
+                    if !ranges.is_empty() {

Tables with no parsed SRV/UAV ranges are now never scanned, where the old code scanned the first 256 slots of every Param::Table. That covers a truncated range array or a bad offset (r(pay) / r(base..) returns None and the loop breaks with no ranges), a parameter type >= 5 (still Param::Table, but only ty == 0 gets ranges), and an RTS0 version or range layout the parser doesn't expect. A superseded target bound through such a table keeps no tiles again: writes are dropped and reads return zeros, the bug #3179 fixed. Falling back to the old 256-slot scan when no ranges were parsed would keep that coverage.

<!-- greyfinch-sync:ivall/xcl:review-comment:4765731052 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3443#discussion_r4765731052). Originally posted by [bmjask](https://github.com/bmjask) on 2026-12-02T06:43:39Z. **Code review location:** `crates/xcl/src/hle/d3d12x/console_list.rs`; line 199 ~~~~diff @@ -163,7 +174,34 @@ pub fn layout_from_blob(blob: &[u8]) -> Option<Layout> { let p = match ty { 1 => Param::Constants { at: l.size, count: r(pay + 8)? }, 2..=4 => Param::Descriptor { at: l.size }, - _ => Param::Table { at: l.size }, + _ => { + if ty == 0 { + let mut ranges = Vec::new(); + if let (Some(nr), Some(roff)) = (r(pay), r(pay + 4)) { + let stride = if version >= 2 { 24usize } else { 20usize }; + let off_field = if version >= 2 { 20usize } else { 16usize }; + let mut next_offset = 0u32; + for j in 0..nr as usize { + let Some(base) = (roff as usize).checked_add(j.checked_mul(stride).unwrap_or(usize::MAX)) else { break }; + let (Some(rty), Some(num), Some(raw_off)) = (r(base), r(base + 4), r(base + off_field)) else { break }; + let start = if raw_off == u32::MAX { next_offset } else { raw_off }; + let count = if num == u32::MAX { None } else { Some(num) }; + next_offset = match count { + Some(c) => start.saturating_add(c), + None => u32::MAX, + }; + // 0 = SRV, 1 = UAV (only views that can reference a placed target) + if (rty == 0 || rty == 1) && num != 0 { + ranges.push(TableRange { start, count }); + } + } + } + if !ranges.is_empty() { ~~~~ --- Tables with no parsed SRV/UAV ranges are now never scanned, where the old code scanned the first 256 slots of every Param::Table. That covers a truncated range array or a bad offset (`r(pay)` / `r(base..)` returns None and the loop breaks with no ranges), a parameter type >= 5 (still Param::Table, but only ty == 0 gets ranges), and an RTS0 version or range layout the parser doesn't expect. A superseded target bound through such a table keeps no tiles again: writes are dropped and reads return zeros, the bug #3179 fixed. Falling back to the old 256-slot scan when no ranges were parsed would keep that coverage.
bmjask commented 2026-12-02 06:43:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-12-02T06:43:39Z.

Code review location: crates/xcl/src/hle/d3d12x/console_list.rs; line 191

@@ -163,7 +174,34 @@ pub fn layout_from_blob(blob: &[u8]) -> Option<Layout> {
         let p = match ty {
             1 => Param::Constants { at: l.size, count: r(pay + 8)? },
             2..=4 => Param::Descriptor { at: l.size },
-            _ => Param::Table { at: l.size },
+            _ => {
+                if ty == 0 {
+                    let mut ranges = Vec::new();
+                    if let (Some(nr), Some(roff)) = (r(pay), r(pay + 4)) {
+                        let stride = if version >= 2 { 24usize } else { 20usize };
+                        let off_field = if version >= 2 { 20usize } else { 16usize };
+                        let mut next_offset = 0u32;
+                        for j in 0..nr as usize {
+                            let Some(base) = (roff as usize).checked_add(j.checked_mul(stride).unwrap_or(usize::MAX)) else { break };
+                            let (Some(rty), Some(num), Some(raw_off)) = (r(base), r(base + 4), r(base + off_field)) else { break };
+                            let start = if raw_off == u32::MAX { next_offset } else { raw_off };
+                            let count = if num == u32::MAX { None } else { Some(num) };
+                            next_offset = match count {
+                                Some(c) => start.saturating_add(c),
+                                None => u32::MAX,

Not certain about this one: after an unbounded range next_offset becomes u32::MAX, so a later OFFSET_APPEND range starts at u32::MAX instead of being rejected, and large starts saturate the same way. An unbounded SRV range followed by an appended UAV range of N parses as TableRange { start: u32::MAX, count: Some(N) }. Outside a heap that reads N slots ~128 GiB past table_base, where any 32 bytes with type nibble >= 8 and a non-zero word 0 are taken as a T#, so note_use remaps an unrelated resource.

<!-- greyfinch-sync:ivall/xcl:review-comment:4765731057 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3443#discussion_r4765731057). Originally posted by [bmjask](https://github.com/bmjask) on 2026-12-02T06:43:39Z. **Code review location:** `crates/xcl/src/hle/d3d12x/console_list.rs`; line 191 ~~~~diff @@ -163,7 +174,34 @@ pub fn layout_from_blob(blob: &[u8]) -> Option<Layout> { let p = match ty { 1 => Param::Constants { at: l.size, count: r(pay + 8)? }, 2..=4 => Param::Descriptor { at: l.size }, - _ => Param::Table { at: l.size }, + _ => { + if ty == 0 { + let mut ranges = Vec::new(); + if let (Some(nr), Some(roff)) = (r(pay), r(pay + 4)) { + let stride = if version >= 2 { 24usize } else { 20usize }; + let off_field = if version >= 2 { 20usize } else { 16usize }; + let mut next_offset = 0u32; + for j in 0..nr as usize { + let Some(base) = (roff as usize).checked_add(j.checked_mul(stride).unwrap_or(usize::MAX)) else { break }; + let (Some(rty), Some(num), Some(raw_off)) = (r(base), r(base + 4), r(base + off_field)) else { break }; + let start = if raw_off == u32::MAX { next_offset } else { raw_off }; + let count = if num == u32::MAX { None } else { Some(num) }; + next_offset = match count { + Some(c) => start.saturating_add(c), + None => u32::MAX, ~~~~ --- Not certain about this one: after an unbounded range `next_offset` becomes u32::MAX, so a later OFFSET_APPEND range starts at u32::MAX instead of being rejected, and large starts saturate the same way. An unbounded SRV range followed by an appended UAV range of N parses as `TableRange { start: u32::MAX, count: Some(N) }`. Outside a heap that reads N slots ~128 GiB past table_base, where any 32 bytes with type nibble >= 8 and a non-zero word 0 are taken as a T#, so `note_use` remaps an unrelated resource.
bmjask commented 2026-12-02 14:13:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-12-02T14:13:37Z.


@Prime1997 could you take a look at this one for review and merge? My automated review notes are above, if any.

<!-- greyfinch-sync:ivall/xcl:comment:7348194613 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3443#issuecomment-7348194613). Originally posted by [bmjask](https://github.com/bmjask) on 2026-12-02T14:13:37Z. --- @Prime1997 could you take a look at this one for review and merge? My automated review notes are above, if any.
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/3443:upstream-pr/3443'
git switch 'upstream-pr/3443'

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/3443'
git switch 'upstream-pr/3443'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3443'
git switch 'upstream-pr/3443'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3443'
git switch 'main'
git merge --squash 'upstream-pr/3443'
git switch 'main'
git merge --ff-only 'upstream-pr/3443'
git switch 'main'
git merge 'upstream-pr/3443'
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!3443
No description provided.