D3D12.X: XCL_CAST_LIST=1 gives R32_UINT volumes the cast list too #3491

Open
KDenKC wants to merge 5 commits from upstream-pr/3491 into main
KDenKC commented 2026-11-30 02:44:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-30T02:44:16Z.


Stacked on #3340 (and #3281 under it); the two top commits belong here.

The title packs bounced light into a 128x128x8 R32_UINT volume its compute programs write, and samples it as R9G9B9E5 at the same address, as it does its 2D light textures. #3340 gives only 2D writers a cast list, so this volume stays on the stale side: with XCL_CAST_LIST=1 the character the room lights stays black, where the copy route (#3094, which covers that pair) lights it (#505, 7266197025).

This gives R32_UINT volumes the cast list too, where the device samples R9G9B9E5 volumes. Off by default, as #3340 (XCL_CAST_LIST=1).

Related: #505, #3094.

What is in it (two commits)

  • hle/d3d12x/cast_list.rs: for_writer gives a TEXTURE3D R32_UINT UAV writer [R32_UINT, R9G9B9E5_SHAREDEXP] where the device samples R9G9B9E5 volumes (FORMAT_SUPPORT1_TEXTURE3D and FORMAT_SUPPORT1_SHADER_SAMPLE, queried only after the R32_UINT/UAV checks and cached by adapter LUID, including unsupported results). keep_reader keeps 3D readers; whole_view makes a TEXTURE3D view. A 2D array of the same size is another shape and is not matched. Reserved writers are created in the title's initial layout, while page mappings use the existing mapping path; a refused create (reserved volumes require tiled resources tier 3) falls back to the original resource path.
  • Tests:
    • cast_list: a volume reader at a volume writer's address gets a whole-volume view on it; a 2D array of the same size is not matched. samples_volumes query gating and adapter-cache behavior are covered by volume_support_is_only_queried_for_r32_uav_volume_writers and volume_format_support_is_queried_once_per_device_including_failure.
    • gpu/recomp/runner/cast_tests.rs: the GPU route test also runs a 128x128x8 volume, committed and reserved, written as R32_UINT through a 3D UAV and read through an R9G9B9E5 3D SRV, every texel compared with a CPU decode. A device that cannot make such a texture says so and skips that route.
  • Size: 297 changed lines (245 insertions, 52 deletions): 88 in cast_list.rs, 209 in the GPU route test.

Tested

  • Final rebased stack: 76756152ba5fbe6d1783563cf76ffe3c2e59e201, based on main 1c8b551475e1e7bfe48f94448492a4c3544a2e0f, with current #3281 and #3340 commits beneath #3491.
  • Final head 76756152, RTX 3090 VM, driver 621.24, XCL_NETWORK=0: cargo test -p xcl --lib -- volume_support --nocapture --test-threads=1 passed 1/1; cargo test --workspace --no-fail-fast -- --test-threads=4 (with the runner's three uma_driver skips) reported 2,922 passed, 5 failed, 51 ignored; the lib binary completed without a crash. The five failures also fail on main 1c8b5514 (main 2,901/5/51): placed_title_textures_share_vram_and_preserve_pixels, the three stream_recheck_* tests, and test_title_runs_and_game_folder_is_untouched. The 28 capability skips were 22 no wave64, 2 no heap windows, and 4 no debug layer.
  • At prior head f55b4698, the focused R32_UINT/R9G9B9E5 route test passed 1/1 and cast_tests passed 2/2 on the same VM.
  • Earlier RTX 5090 test at 5e4becfb (before this rebase): cast_tests 2/2; 2D and 128x128x8 volume routes were bit-exact for committed and reserved resources, with no debug-layer errors or device removal.
  • The smoke pair in the section below is from prior head 5e4becfb, not this rebased head. No retail-title smoke has run on 76756152; the blocks below are from 5e4becfb.

Regression run

The smoke blocks below are from prior head 5e4becfb, before the rebase. Both runs left XCL_CAST_LIST unset; no retail-title smoke has run on final head 76756152.

RTX 5090 32 GB, driver 621.40, the retail title, 600 s each, scripts/smoke.ps1 with preparation off (XCL_PREPARE=0), each run starting from its own copy of the same translated cache (made by main). Both runs used this machine's usual settings (XCL_UMA_WINDOWS=16, XCL_UMA_DRIVER=mixed:1536:1792, XCL_COHERENT_MB=4095, XCL_HUGE_PSO_CONCURRENCY=3) and left XCL_CAST_LIST unset (off, as by default), so this pair shows the default path unchanged.

Neither run reached the world in its 600 s (shader compiles ran to the end): the pair shows boot and loading with no device removal and a peak commit at 104.0 % of main's; its frame counts are presents of the title's first screens and say nothing about speed.

main 9dfbe3ea:

xcl-smoke v1
commit: 9dfbe3ea6653a9c76ef3ea0d66187a4b5407483b
gpu: NVIDIA GeForce RTX 5090
title: 9cc6a39e
seconds: 600
exit: 0x0
frames shown: 1843 (PresentX 1843)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 36593 MB

this head 5e4becfb:

xcl-smoke v1
commit: 5e4becfb7341051c173aa9bcc6b419d2daec8dc5
gpu: NVIDIA GeForce RTX 5090
title: 9cc6a39e
seconds: 600
exit: 0x0
frames shown: 4701 (PresentX 4701)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 38057 MB

Not tested

  • That the title's 128x128x8 pair is a volume: the copy route's log names its size only; a 2D array of 8 slices is matched by #3340 already, so this changes nothing there if it is one.
  • In the retail title with XCL_CAST_LIST=1: whether the character is lit with this (not run yet).
  • AMD and Intel: the route is vendor-neutral (the same checks as #3340, plus the volume sampling check), but it ran on NVIDIA only.

AI use

  • AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 4 Hydrogen (tools: Claude Code, Codex and Antigravity); the swarm rebased and validated the stack.

🤖 Generated with Claude Code
https://claude.ai/code/session_013oPUFCA9W9F8Qb5MPK33bR

<!-- greyfinch-sync:ivall/xcl:issue:5558032848 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3491). Originally posted by [KDenKC](https://github.com/KDenKC) on 2026-11-30T02:44:16Z. --- Stacked on #3340 (and #3281 under it); the two top commits belong here. The title packs bounced light into a 128x128x8 R32_UINT volume its compute programs write, and samples it as R9G9B9E5 at the same address, as it does its 2D light textures. #3340 gives only 2D writers a cast list, so this volume stays on the stale side: with `XCL_CAST_LIST=1` the character the room lights stays black, where the copy route (#3094, which covers that pair) lights it (#505, 7266197025). This gives R32_UINT volumes the cast list too, where the device samples R9G9B9E5 volumes. Off by default, as #3340 (`XCL_CAST_LIST=1`). Related: #505, #3094. **What is in it** (two commits) - `hle/d3d12x/cast_list.rs`: `for_writer` gives a TEXTURE3D R32_UINT UAV writer [R32_UINT, R9G9B9E5_SHAREDEXP] where the device samples R9G9B9E5 volumes (`FORMAT_SUPPORT1_TEXTURE3D` and `FORMAT_SUPPORT1_SHADER_SAMPLE`, queried only after the R32_UINT/UAV checks and cached by adapter LUID, including unsupported results). `keep_reader` keeps 3D readers; `whole_view` makes a TEXTURE3D view. A 2D array of the same size is another shape and is not matched. Reserved writers are created in the title's initial layout, while page mappings use the existing mapping path; a refused create (reserved volumes require tiled resources tier 3) falls back to the original resource path. - Tests: - `cast_list`: a volume reader at a volume writer's address gets a whole-volume view on it; a 2D array of the same size is not matched. `samples_volumes` query gating and adapter-cache behavior are covered by `volume_support_is_only_queried_for_r32_uav_volume_writers` and `volume_format_support_is_queried_once_per_device_including_failure`. - `gpu/recomp/runner/cast_tests.rs`: the GPU route test also runs a 128x128x8 volume, committed and reserved, written as R32_UINT through a 3D UAV and read through an R9G9B9E5 3D SRV, every texel compared with a CPU decode. A device that cannot make such a texture says so and skips that route. - Size: 297 changed lines (245 insertions, 52 deletions): 88 in `cast_list.rs`, 209 in the GPU route test. **Tested** - Final rebased stack: `76756152ba5fbe6d1783563cf76ffe3c2e59e201`, based on main `1c8b551475e1e7bfe48f94448492a4c3544a2e0f`, with current #3281 and #3340 commits beneath #3491. - Final head `76756152`, RTX 3090 VM, driver 621.24, `XCL_NETWORK=0`: `cargo test -p xcl --lib -- volume_support --nocapture --test-threads=1` passed 1/1; `cargo test --workspace --no-fail-fast -- --test-threads=4` (with the runner's three `uma_driver` skips) reported 2,922 passed, 5 failed, 51 ignored; the lib binary completed without a crash. The five failures also fail on main `1c8b5514` (main 2,901/5/51): `placed_title_textures_share_vram_and_preserve_pixels`, the three `stream_recheck_*` tests, and `test_title_runs_and_game_folder_is_untouched`. The 28 capability skips were 22 no wave64, 2 no heap windows, and 4 no debug layer. - At prior head `f55b4698`, the focused R32_UINT/R9G9B9E5 route test passed 1/1 and `cast_tests` passed 2/2 on the same VM. - Earlier RTX 5090 test at `5e4becfb` (before this rebase): `cast_tests` 2/2; 2D and 128x128x8 volume routes were bit-exact for committed and reserved resources, with no debug-layer errors or device removal. - The smoke pair in the section below is from prior head `5e4becfb`, not this rebased head. No retail-title smoke has run on `76756152`; the blocks below are from `5e4becfb`. **Regression run** The smoke blocks below are from prior head `5e4becfb`, before the rebase. Both runs left `XCL_CAST_LIST` unset; no retail-title smoke has run on final head `76756152`. RTX 5090 32 GB, driver 621.40, the retail title, 600 s each, `scripts/smoke.ps1` with preparation off (`XCL_PREPARE=0`), each run starting from its own copy of the same translated cache (made by `main`). Both runs used this machine's usual settings (`XCL_UMA_WINDOWS=16`, `XCL_UMA_DRIVER=mixed:1536:1792`, `XCL_COHERENT_MB=4095`, `XCL_HUGE_PSO_CONCURRENCY=3`) and left `XCL_CAST_LIST` unset (off, as by default), so this pair shows the default path unchanged. Neither run reached the world in its 600 s (shader compiles ran to the end): the pair shows boot and loading with no device removal and a peak commit at 104.0 % of `main`'s; its frame counts are presents of the title's first screens and say nothing about speed. `main` 9dfbe3ea: ``` xcl-smoke v1 commit: 9dfbe3ea6653a9c76ef3ea0d66187a4b5407483b gpu: NVIDIA GeForce RTX 5090 title: 9cc6a39e seconds: 600 exit: 0x0 frames shown: 1843 (PresentX 1843) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 36593 MB ``` this head `5e4becfb`: ``` xcl-smoke v1 commit: 5e4becfb7341051c173aa9bcc6b419d2daec8dc5 gpu: NVIDIA GeForce RTX 5090 title: 9cc6a39e seconds: 600 exit: 0x0 frames shown: 4701 (PresentX 4701) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 38057 MB ``` **Not tested** - That the title's 128x128x8 pair is a volume: the copy route's log names its size only; a 2D array of 8 slices is matched by #3340 already, so this changes nothing there if it is one. - In the retail title with `XCL_CAST_LIST=1`: whether the character is lit with this (not run yet). - AMD and Intel: the route is vendor-neutral (the same checks as #3340, plus the volume sampling check), but it ran on NVIDIA only. **AI use** - AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 4 Hydrogen (tools: Claude Code, Codex and Antigravity); the swarm rebased and validated the stack. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_013oPUFCA9W9F8Qb5MPK33bR
Foniass commented 2026-12-01 08:12:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:12:35Z.


Review (head 5e4becfb, diff read, not a merge-check; draft, stacked on #3340 -> #3281, so this covers 5e4becfb):

  • The stack is stale: it carries #3281's old commits (d427662e, 7233f964), while #3281 is now 050e44a3 / ddd5c6ca, which add placements::current(); #3340 and this PR need rebasing.
  • In for_writer (cast_list.rs ~157), samples_volumes(dev) (a CheckFeatureSupport call) runs for every TEXTURE3D before the format and UAV checks; checking R32_UINT and UAV first would make it ask only for writers, as its doc says.
  • A reserved volume needs tiled resources tier 3, which isn't checked; it relies on CreateReservedResource2 failing and then creating the texture as before.
  • CI fails only on standin::concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline, which the description lists as failing on main too.

Fine: this commit is about 186 lines and does nothing without XCL_CAST_LIST=1. A volume writer is made with CreateReservedResource2 with [R32_UINT, R9G9B9E5_SHAREDEXP] in layout COMMON after relaxed casting and ID3D12Device10 are checked; a refused create falls back. Shape includes the dimension, so a 2D array of the same size isn't matched. There's a unit test and a texel-exact GPU test.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7305016667 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3491#issuecomment-7305016667). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:12:35Z. --- Review (head 5e4becfb, diff read, not a merge-check; draft, stacked on #3340 -> #3281, so this covers 5e4becfb): - **The stack is stale:** it carries #3281's old commits (d427662e, 7233f964), while #3281 is now 050e44a3 / ddd5c6ca, which add `placements::current()`; #3340 and this PR need rebasing. - In `for_writer` (`cast_list.rs` ~157), `samples_volumes(dev)` (a CheckFeatureSupport call) runs for every TEXTURE3D before the format and UAV checks; checking R32_UINT and UAV first would make it ask only for writers, as its doc says. - A reserved volume needs tiled resources tier 3, which isn't checked; it relies on CreateReservedResource2 failing and then creating the texture as before. - CI fails only on `standin::concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline`, which the description lists as failing on main too. Fine: this commit is about 186 lines and does nothing without `XCL_CAST_LIST=1`. A volume writer is made with CreateReservedResource2 with [R32_UINT, R9G9B9E5_SHAREDEXP] in layout COMMON after relaxed casting and ID3D12Device10 are checked; a refused create falls back. `Shape` includes the dimension, so a 2D array of the same size isn't matched. There's a unit test and a texel-exact GPU test. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
Foniass commented 2026-12-01 10:04:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T10:04:08Z.


Triage (#1607) – head 5e4becf

Stacked on #3340 (and #3281 under it); its own commit only extends cast_list.rs to TEXTURE3D writers and readers, plus the GPU route test. The overlap with #3340, #3281 and #3282 comes from that stack.
No problems found in the top commit: for_writer checks FORMAT_SUPPORT1_TEXTURE3D for R9G9B9E5 first, keep_reader keeps 3D readers, and whole_view makes a Texture3D SRV, with a unit test that a 2D array of the same size is not matched. CI is red on this head.
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:7307619891 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3491#issuecomment-7307619891). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T10:04:08Z. --- **Triage (#1607)** – head 5e4becf Stacked on #3340 (and #3281 under it); its own commit only extends `cast_list.rs` to TEXTURE3D writers and readers, plus the GPU route test. The overlap with #3340, #3281 and #3282 comes from that stack. No problems found in the top commit: `for_writer` checks `FORMAT_SUPPORT1_TEXTURE3D` for R9G9B9E5 first, `keep_reader` keeps 3D readers, and `whole_view` makes a Texture3D SRV, with a unit test that a 2D array of the same size is not matched. CI is red on this head. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Foniass commented 2026-12-02 00:35:53 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T00:35:53Z.


Follow-up review (head f55b4698, since 5e4becf, diff read, not a merge-check; draft, checks red):

  • Stale stack: partly fixed. The branch now carries #3281's current commits (b8b634e7, 3a4b971f) and #3340's commit (010007f2, same patch as #3340's 8a2d7518); only f55b4698 belongs here. #3340's own branch still sits on #3281's old commits.
  • samples_volumes asked for every TEXTURE3D: still open. cast_list.rs ~182 still calls it before the R32_UINT and UAV checks, with no per-device cache, though its doc (~164) says it is asked only at a volume writer's creation.
  • Tiled resources tier 3 not checked for a reserved volume: still open. On a tier-2 device CreateReservedResource2 fails, a warning is logged and the texture is made as on main (vram.rs ~2533-2548), so the volume never gets the cast list there.
  • Triage (keep open, stacked on #3340): still applies.

New:

  • The test results come from code this head no longer has. Tested and the smoke pair are from 5e4becfb, whose base made the writer in layout COMMON and settled it on the tile queue. At this head vram.rs ~2533 creates it directly in layout_of(state) (e.g. UNORDERED_ACCESS), and the GPU test makes it in UNORDERED_ACCESS (cast_tests.rs ~236), the setup the previous head's own notes said gives debug-layer error 1350 and a hung device on the 5090 (5e4becfb cast_list.rs ~14-16). Nothing was run on f55b4698, and PR description is red for the missing smoke block.
  • The description no longer matches the code. It says the writer is "reserved, in layout COMMON, moved to the title's initial state on the tile-mapping queue", but there is no settle step at this head; it also gives the size as 186 lines (now 198+/52-) and calls 5e4becfb "this head".
  • This commit reworks #3340's 2D route test. cast_tests.rs ~236-368 changes the 2D texture's creation layout from COMMON to UNORDERED_ACCESS, drops the COMMON-to-UNORDERED_ACCESS barrier and adds later unbarriered reads; that tests #3340's behaviour, not volumes. move_tex (~185-196) says it sends states "through cast_list::widen_state" but has its own copy of that logic, so it will not follow the runtime if widen_state changes.

Fine: the own commit is about 250 lines and changes nothing without XCL_CAST_LIST=1; Shape includes the dimension, so a 2D array of the same size does not match a volume; whole_view makes a Texture3D SRV with the writer's mip count; the volume GPU test's indexing is consistent and it skips devices without R9G9B9E5 volume sampling or tier 3.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7330744437 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3491#issuecomment-7330744437). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-02T00:35:53Z. --- Follow-up review (head f55b4698, since 5e4becf, diff read, not a merge-check; draft, checks red): - **Stale stack:** partly fixed. The branch now carries #3281's current commits (`b8b634e7`, `3a4b971f`) and #3340's commit (`010007f2`, same patch as #3340's `8a2d7518`); only `f55b4698` belongs here. #3340's own branch still sits on #3281's old commits. - **`samples_volumes` asked for every TEXTURE3D:** still open. `cast_list.rs` ~182 still calls it before the `R32_UINT` and UAV checks, with no per-device cache, though its doc (~164) says it is asked only at a volume writer's creation. - **Tiled resources tier 3 not checked for a reserved volume:** still open. On a tier-2 device `CreateReservedResource2` fails, a warning is logged and the texture is made as on `main` (`vram.rs` ~2533-2548), so the volume never gets the cast list there. - **Triage (keep open, stacked on #3340):** still applies. New: - **The test results come from code this head no longer has.** **Tested** and the smoke pair are from `5e4becfb`, whose base made the writer in layout COMMON and settled it on the tile queue. At this head `vram.rs` ~2533 creates it directly in `layout_of(state)` (e.g. UNORDERED_ACCESS), and the GPU test makes it in UNORDERED_ACCESS (`cast_tests.rs` ~236), the setup the previous head's own notes said gives debug-layer error 1350 and a hung device on the 5090 (`5e4becfb` `cast_list.rs` ~14-16). Nothing was run on `f55b4698`, and `PR description` is red for the missing smoke block. - **The description no longer matches the code.** It says the writer is "reserved, in layout COMMON, moved to the title's initial state on the tile-mapping queue", but there is no settle step at this head; it also gives the size as 186 lines (now 198+/52-) and calls `5e4becfb` "this head". - **This commit reworks #3340's 2D route test.** `cast_tests.rs` ~236-368 changes the 2D texture's creation layout from COMMON to UNORDERED_ACCESS, drops the COMMON-to-UNORDERED_ACCESS barrier and adds later unbarriered reads; that tests #3340's behaviour, not volumes. `move_tex` (~185-196) says it sends states "through `cast_list::widen_state`" but has its own copy of that logic, so it will not follow the runtime if `widen_state` changes. Fine: the own commit is about 250 lines and changes nothing without `XCL_CAST_LIST=1`; `Shape` includes the dimension, so a 2D array of the same size does not match a volume; `whole_view` makes a Texture3D SRV with the writer's mip count; the volume GPU test's indexing is consistent and it skips devices without R9G9B9E5 volume sampling or tier 3. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
KDenKC commented 2026-12-02 01:10:40 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KDenKC on 2026-12-02T01:10:40Z.


@Foniass thanks for the follow-up. Fixed on 76756152ba5fbe6d1783563cf76ffe3c2e59e201: samples_volumes is now reached only for R32_UINT UAV Texture3D candidates, and its positive or negative result is cached by adapter LUID. The unit tests cover both the eligibility gate and cached failure/success.

Tested (RTX 3090 VM, driver 621.24, XCL_NETWORK=0):

cargo test -p xcl --lib -- volume_support --nocapture --test-threads=1
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 2812 filtered out
cargo test --workspace --no-fail-fast -- --test-threads=4
counts: 2922 passed, 5 failed, 51 ignored over the binaries with a result; 0 binaries without a result

The five suite failures are the same as main on this VM: placed_title_textures_share_vram_and_preserve_pixels, the three stream_recheck_* tests, and test_title_runs_and_game_folder_is_untouched. Reserved-volume behavior on devices below tiled-resources tier 3 is unchanged and remains a separate limitation.

AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 4 Hydrogen.

<!-- greyfinch-sync:ivall/xcl:comment:7331401987 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3491#issuecomment-7331401987). Originally posted by [KDenKC](https://github.com/KDenKC) on 2026-12-02T01:10:40Z. --- @Foniass thanks for the follow-up. Fixed on `76756152ba5fbe6d1783563cf76ffe3c2e59e201`: `samples_volumes` is now reached only for R32_UINT UAV Texture3D candidates, and its positive or negative result is cached by adapter LUID. The unit tests cover both the eligibility gate and cached failure/success. **Tested** (RTX 3090 VM, driver 621.24, `XCL_NETWORK=0`): ```text cargo test -p xcl --lib -- volume_support --nocapture --test-threads=1 test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 2812 filtered out cargo test --workspace --no-fail-fast -- --test-threads=4 counts: 2922 passed, 5 failed, 51 ignored over the binaries with a result; 0 binaries without a result ``` The five suite failures are the same as main on this VM: `placed_title_textures_share_vram_and_preserve_pixels`, the three `stream_recheck_*` tests, and `test_title_runs_and_game_folder_is_untouched`. Reserved-volume behavior on devices below tiled-resources tier 3 is unchanged and remains a separate limitation. AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 4 Hydrogen.
Foniass commented 2026-12-02 01:16:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T01:16:14Z.


Follow-up review (head 76756152, since f55b4698, diff read, not a merge-check; draft, checks red):

  • samples_volumes asked for every TEXTURE3D: fixed. light_writer (cast_list.rs ~181-189) checks R32_UINT and the UAV flag before asking about volumes, and cached_volume_support (~175) keeps the answer per adapter LUID, negative ones included, with two unit tests.
  • The test results come from code this head no longer has: partly fixed. Tested now has a full-suite run on 76756152, but the smoke pair is still from 5e4becfb (whose base made the writer in COMMON), so PR description stays red; the only debug-layer-clean run of the UNORDERED_ACCESS-layout path is still none on this head.
  • The description no longer matches the code: fixed, apart from the smoke blocks, which are now labelled as from 5e4becfb.
  • Tiled resources tier 3 not checked: still open, now stated in the description (vram.rs ~2535-2549 falls back as on main).
  • This commit reworks #3340's 2D route test: still open (cast_tests.rs ~236-368; move_tex ~185-198 keeps its own copy of widen_state).
  • Stale stack: unchanged; #3340's own branch still sits on #3281's old commits.

New:

  • Fixup commit. 76756152 only reworks the volume check f55b4698 added; it should be squashed into it, or f55b4698 lands with the uncached query before the format checks.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7331505470 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3491#issuecomment-7331505470). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-02T01:16:14Z. --- Follow-up review (head 76756152, since f55b4698, diff read, not a merge-check; draft, checks red): - **`samples_volumes` asked for every TEXTURE3D:** fixed. `light_writer` (`cast_list.rs` ~181-189) checks R32_UINT and the UAV flag before asking about volumes, and `cached_volume_support` (~175) keeps the answer per adapter LUID, negative ones included, with two unit tests. - **The test results come from code this head no longer has:** partly fixed. **Tested** now has a full-suite run on `76756152`, but the smoke pair is still from `5e4becfb` (whose base made the writer in COMMON), so `PR description` stays red; the only debug-layer-clean run of the UNORDERED_ACCESS-layout path is still none on this head. - **The description no longer matches the code:** fixed, apart from the smoke blocks, which are now labelled as from `5e4becfb`. - **Tiled resources tier 3 not checked:** still open, now stated in the description (`vram.rs` ~2535-2549 falls back as on `main`). - **This commit reworks #3340's 2D route test:** still open (`cast_tests.rs` ~236-368; `move_tex` ~185-198 keeps its own copy of `widen_state`). - **Stale stack:** unchanged; #3340's own branch still sits on #3281's old commits. New: - **Fixup commit.** `76756152` only reworks the volume check `f55b4698` added; it should be squashed into it, or `f55b4698` lands with the uncached query before the format checks. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
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/3491:upstream-pr/3491'
git switch 'upstream-pr/3491'

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