Merge amd-dev into main #3547

Open
lucsoft wants to merge 192 commits from upstream-pr/3547 into main
lucsoft commented 2026-11-30 21:32:02 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by lucsoft on 2026-11-30T21:32:02Z.


Moves amd-dev into main: 176 commits, +26.4k/−1.0k in 103 files against current main (1c8b5514). Ready for testing on other GPUs; the defaults below decide what changes for everyone.

amd-dev's memory switches (XCL_TEXTURE_LEVEL_PAGES, XCL_SMALL_TEXTURES, XCL_VRAM_SMALL, XCL_ZERO_TARGET_PAGES, XCL_FORMAT_ALIAS) are off by default here, as on main: with them on, the retail title hung in the load in 5 of 6 runs on an RX 7800 XT; with all five off it ran 600 s clean. Translator defaults (XCL_DECLARED_LDS, XCL_PS_MASKS, …) and the NVIDIA-facing knobs are left as amd-dev has them and need a non-AMD test pass.

What is in it

  • amd-dev up to fae6f90e: the ambient stand-in for ray-traced lighting (ambient.rs), format aliasing, depth UAVs, the memory work (level pages, vram_small.rs, sparse pools, mirrors), two-pass mesh reuse, bake-at-submit; recompiler / Direct DXIL work (flat heap reads, compaction); kernelx memory aliasing (alias.rs)
  • fixes from open PRs that amd-dev needed to stay stable, applied on top:
  • b6aebe7d the five memory switches above off by default; 1bb61081, 30ca950e let the vram / vram_small tests turn on the path they test
  • main 1c8b5514 merged (dd6cec72): 8 conflicting files, both sides kept; in bind.rs main's execute_indirect_chain is used and amd-dev's extra Checked::read at the call site dropped (it would transition the guard's buffer twice)

Tested

  • AMD Radeon RX 7800 XT (RADV NAVI32), AMD Ryzen 7 7800X3D, NixOS with Wine 11.21 (Staging) + vkd3d-proton, rustc 1.95.0, release build, x86_64-pc-windows-gnu
  • whole suite, one module per process, 2 threads (--test-threads=2, not 4: under Wine one very heavy test ran the machine out of memory with more threads), 30ca950e against main 1c8b5514 on the same machine:
    • lib: 2943 passed, 17 failed, 31 ignored, 1 died (serialize_root_signature_*, hangs under Wine); main: 2735 passed, 17 failed, 31 ignored, 1 died – 16 of them fail on both; the 17th is title_textures below on the PR and gpu_ps_readfirstlane_loop_on_a_primitive_edge_ends on main
    • integration: 144 passed, 5 failed, 20 ignored; main: 143 passed, 5 failed, 20 ignored – the same 5 on both (e2e ×2, gpu_two_pass_cache_e2e, pls_quota, tls_slot_zero)
    • title_textures::remapped_pages_are_compared_with_what_they_held failed once in the suite run (that group fails together under Wine when one test panics) and passed alone 2/2; it is not on main
    • uma_driver not run (~32 GB under Wine)
    • SKIPPED: no D3D12 debug layer / d3d12SDKLayers.dll, no dxc.exe, no Developer Mode (driver cache), heap windows opt-in (XCL_HEAP_WINDOWS), Close does not refuse an open pipeline-statistics query (2), host ignores SetPredication for copies, no successful stale-blob probe
  • Windows CI's failure on dd6cec72 (vram_small::gpu_small_textures_pack_at_4k_granularity_and_preserve_pixels, the switch now off) is fixed in 30ca950e: vram_small 5 passed, 0 failed here

Regression run

main 1c8b5514 did not reach the end of a 600 s run on this machine in two tries (device removal after GPU page faults both times), so its block has no frame count. The PR ran 600 s clean twice: 2615 frames at dd6cec72 (the same tree without the test fix 30ca950e), 2114 at the head below; 0 page faults and 0 ring timeouts in the kernel log both times.

Both runs below were made with -Title <game name>; after the runs that flag was dropped from our wrapper, and the title: line of both blocks now shows smoke.ps1's default label instead (f651e787, the hash of the game folder's name). Nothing else in the blocks was changed; the runs are the same.

main:

xcl-smoke v1
commit: 1c8b551475e1e7bfe48f94448492a4c3544a2e0f
gpu: AMD Radeon RX 7800 XT (RADV NAVI32)
title: f651e787
seconds: 600
exit: 0x5
frames shown: none logged (the run did not reach its end)
presents per 2 s (last 3): 0 0 0
device removals: 1
crashes: 1
peak commit: 0 MB

PR:

xcl-smoke v1
commit: 30ca950e78cc7758044640a9d46a59f4559c8cf0
gpu: AMD Radeon RX 7800 XT (RADV NAVI32)
title: f651e787
seconds: 600
exit: 0x0
frames shown: 2114 (PresentX 2114)
presents per 2 s (last 3): 0 2 1
device removals: 0
crashes: 0
peak commit: 0 MB

Not tested

  • NVIDIA, Intel and Windows: only RADV under Wine was run
  • the five memory switches turned back on (they hang the load here)
  • uma_driver tests

AI use

  • Claude Code (Claude Opus 5.5): merged main into the branch and resolved the conflicts, the vram_small test fix (30ca950e), the test and game runs above, this description
  • the fixes brought over on 2026-12-01 (c909fb83 – 1bb61081) were ported by Codex (gpt-6.2-sol) and pi (gpt-5.3-codex) agents and finished and checked in Claude Code

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5574138242 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3547). Originally posted by [lucsoft](https://github.com/lucsoft) on 2026-11-30T21:32:02Z. --- Moves `amd-dev` into `main`: 176 commits, +26.4k/−1.0k in 103 files against current `main` (1c8b5514). Ready for testing on other GPUs; the defaults below decide what changes for everyone. `amd-dev`'s memory switches (`XCL_TEXTURE_LEVEL_PAGES`, `XCL_SMALL_TEXTURES`, `XCL_VRAM_SMALL`, `XCL_ZERO_TARGET_PAGES`, `XCL_FORMAT_ALIAS`) are **off by default** here, as on `main`: with them on, the retail title hung in the load in 5 of 6 runs on an RX 7800 XT; with all five off it ran 600 s clean. Translator defaults (`XCL_DECLARED_LDS`, `XCL_PS_MASKS`, …) and the NVIDIA-facing knobs are left as `amd-dev` has them and need a non-AMD test pass. **What is in it** - `amd-dev` up to fae6f90e: the ambient stand-in for ray-traced lighting (`ambient.rs`), format aliasing, depth UAVs, the memory work (level pages, `vram_small.rs`, sparse pools, mirrors), two-pass mesh reuse, bake-at-submit; recompiler / Direct DXIL work (flat heap reads, compaction); kernelx memory aliasing (`alias.rs`) - fixes from open PRs that `amd-dev` needed to stay stable, applied on top: - c909fb83 split chains read what the slicer wrote (#3536's 373e22e1), 1becd37c indirect guard compiled with DXC (#3536) - a3b6cf97 tile mappings whose Signal failed (#3566), d1ba113b reserved textures with live page tables (#3553) - e78c0a43 release PC allocators that had a heavy cycle, 9f173d9d GPU wait watchdog names the recorded work - b6aebe7d the five memory switches above off by default; 1bb61081, 30ca950e let the vram / vram_small tests turn on the path they test - `main` 1c8b5514 merged (dd6cec72): 8 conflicting files, both sides kept; in `bind.rs` `main`'s `execute_indirect_chain` is used and `amd-dev`'s extra `Checked::read` at the call site dropped (it would transition the guard's buffer twice) **Tested** - AMD Radeon RX 7800 XT (RADV NAVI32), AMD Ryzen 7 7800X3D, NixOS with Wine 11.21 (Staging) + vkd3d-proton, rustc 1.95.0, release build, `x86_64-pc-windows-gnu` - whole suite, one module per process, 2 threads (`--test-threads=2`, not 4: under Wine one very heavy test ran the machine out of memory with more threads), 30ca950e against `main` 1c8b5514 on the same machine: - lib: 2943 passed, 17 failed, 31 ignored, 1 died (`serialize_root_signature_*`, hangs under Wine); `main`: 2735 passed, 17 failed, 31 ignored, 1 died – 16 of them fail on both; the 17th is `title_textures` below on the PR and `gpu_ps_readfirstlane_loop_on_a_primitive_edge_ends` on `main` - integration: 144 passed, 5 failed, 20 ignored; `main`: 143 passed, 5 failed, 20 ignored – the same 5 on both (`e2e` ×2, `gpu_two_pass_cache_e2e`, `pls_quota`, `tls_slot_zero`) - `title_textures::remapped_pages_are_compared_with_what_they_held` failed once in the suite run (that group fails together under Wine when one test panics) and passed alone 2/2; it is not on `main` - `uma_driver` not run (~32 GB under Wine) - SKIPPED: no D3D12 debug layer / `d3d12SDKLayers.dll`, no `dxc.exe`, no Developer Mode (driver cache), heap windows opt-in (`XCL_HEAP_WINDOWS`), Close does not refuse an open pipeline-statistics query (2), host ignores SetPredication for copies, no successful stale-blob probe - Windows CI's failure on dd6cec72 (`vram_small::gpu_small_textures_pack_at_4k_granularity_and_preserve_pixels`, the switch now off) is fixed in 30ca950e: `vram_small` 5 passed, 0 failed here **Regression run** `main` 1c8b5514 did not reach the end of a 600 s run on this machine in two tries (device removal after GPU page faults both times), so its block has no frame count. The PR ran 600 s clean twice: 2615 frames at dd6cec72 (the same tree without the test fix 30ca950e), 2114 at the head below; 0 page faults and 0 ring timeouts in the kernel log both times. Both runs below were made with `-Title <game name>`; after the runs that flag was dropped from our wrapper, and the `title:` line of both blocks now shows `smoke.ps1`'s default label instead (`f651e787`, the hash of the game folder's name). Nothing else in the blocks was changed; the runs are the same. main: ``` xcl-smoke v1 commit: 1c8b551475e1e7bfe48f94448492a4c3544a2e0f gpu: AMD Radeon RX 7800 XT (RADV NAVI32) title: f651e787 seconds: 600 exit: 0x5 frames shown: none logged (the run did not reach its end) presents per 2 s (last 3): 0 0 0 device removals: 1 crashes: 1 peak commit: 0 MB ``` PR: ``` xcl-smoke v1 commit: 30ca950e78cc7758044640a9d46a59f4559c8cf0 gpu: AMD Radeon RX 7800 XT (RADV NAVI32) title: f651e787 seconds: 600 exit: 0x0 frames shown: 2114 (PresentX 2114) presents per 2 s (last 3): 0 2 1 device removals: 0 crashes: 0 peak commit: 0 MB ``` **Not tested** - NVIDIA, Intel and Windows: only RADV under Wine was run - the five memory switches turned back on (they hang the load here) - `uma_driver` tests **AI use** - Claude Code (Claude Opus 5.5): merged `main` into the branch and resolved the conflicts, the vram_small test fix (30ca950e), the test and game runs above, this description - the fixes brought over on 2026-12-01 (c909fb83 – 1bb61081) were ported by Codex (gpt-6.2-sol) and pi (gpt-5.3-codex) agents and finished and checked in Claude Code 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Chrysana commented 2026-11-30 23:06:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Chrysana on 2026-11-30T23:06:43Z.


Windows/AMD results for this head (f9e31720), since the description asks for them. I was mainly checking one thing. Through #3444 amd-dev now has #3243, which makes XCL_DIRECT_DXIL=all the default. On current main that default crashes AMD's Windows shader compiler (amdxc64.dll, null read) 42–48 s into the retail title, on both GPUs below (#3544). RADV doesn't use that compiler, so a Linux run can't show it.

The crash doesn't happen on this head. Retail title, 120 s smoke runs, each one inside my GPU memory guard:

GPU XCL_DIRECT_DXIL frames crashes / device removals peak commit
RX 9070 XT (RDNA 4), r1 / r2 unset (all) 2379 / 2132 0 / 0 22,992 / 24,394 MB
RX 9070 XT, r1 / r2 1 2030 / 2079 0 / 0 23,761 / 25,160 MB
9800X3D iGPU (RDNA 2, XCL_ADAPTER=1) unset 2159 0 / 0 21,723 MB

Another default run on the 9070 XT went 21 minutes (see the smoke.ps1 note below) and didn't crash either. These runs do use direct DXIL for graphics stages. That run logged graphics direct DXIL fallback stage=PS lines, and the graphics DXIL sent to the driver differs from the =1 runs (median 140–147 KB against 170–199 KB). The driver-blob cache is off on AMD, so every run compiled through amdxc64.dll. In all 5 runs the title went on into world load (DirectStorage reads at 70–90 s), and presents had stopped by 120 s, as in #2996.

But it looks avoided, not fixed. On main, every crash came right after the title created root signature aed4a2841022bca7 (420 B). On this head the title never creates that one, not even in the 21-minute run. Three others that main gets are also missing: 164551478e4c908b, 4a6575fdb37d6d1d, f0bb7c4edcaa7ae8. The other 165 of main's 169 show up, and through 60 s the draws per 2 s match main's (XCL_DIRECT_DXIL=1 there) to within 2 %. So something on amd-dev keeps the title from asking for that pipeline. Whatever it is, the translator may still have the bug. I'd keep #3544 open and rerun after the main → amd-dev sync, which touches the same code.

smoke.ps1 on this branch: amd-dev's copy predates main's 50f29611. It sets XCL_RUN_SECONDS, XCL_NETWORK=0 and XCL_ACTIVITY after the child's environment has been copied, so on Windows the title never ends itself. The timeout then kills only the launcher. The host keeps the output pipe open, and the script waits until the host is killed by hand. The sync brings the fix. Until then, setting the three variables in the shell before calling the script works. (The launcher-only kill on timeout is on main too. It only matters when the title doesn't end itself.)

Setup: AMD Radeon RX 9070 XT 16 GB (driver 32.0.32015.2008, amdxc64.dll 8.18.10.0514) and the 9800X3D's iGPU (driver 32.0.21045.11001, amdxc64.dll 8.18.10.0500), 32 GB RAM, Windows 11 25H2 build 26200.9974, release build of f9e31720, no local changes. The page file on X: is fixed at 32 GB, so the title gets the 4,095 MB coherent window.

xcl-smoke v1
commit: f9e31720073817e7d328f5fd47e3d911b875aa32
gpu: AMD Radeon RX 9070 XT
title: 21222967
seconds: 120
exit: 0x0
frames shown: 2379 (PresentX 2379)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 22992 MB
xcl-smoke v1
commit: f9e31720073817e7d328f5fd47e3d911b875aa32
gpu: AMD Radeon(TM) Graphics
title: 21222967
seconds: 120
exit: 0x0
frames shown: 2159 (PresentX 2159)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 21723 MB

AI use: Claude Code (Claude Opus 5.5) ran the build and the guarded runs, compared the logs with main's and drafted this comment. I checked it before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7294722576 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3547#issuecomment-7294722576). Originally posted by [Chrysana](https://github.com/Chrysana) on 2026-11-30T23:06:43Z. --- Windows/AMD results for this head (`f9e31720`), since the description asks for them. I was mainly checking one thing. Through #3444 `amd-dev` now has #3243, which makes `XCL_DIRECT_DXIL=all` the default. On current `main` that default crashes AMD's Windows shader compiler (`amdxc64.dll`, null read) 42–48 s into the retail title, on both GPUs below (#3544). RADV doesn't use that compiler, so a Linux run can't show it. **The crash doesn't happen on this head.** Retail title, 120 s smoke runs, each one inside my GPU memory guard: | GPU | `XCL_DIRECT_DXIL` | frames | crashes / device removals | peak commit | |---|---|---|---|---| | RX 9070 XT (RDNA 4), r1 / r2 | unset (`all`) | 2379 / 2132 | 0 / 0 | 22,992 / 24,394 MB | | RX 9070 XT, r1 / r2 | `1` | 2030 / 2079 | 0 / 0 | 23,761 / 25,160 MB | | 9800X3D iGPU (RDNA 2, `XCL_ADAPTER=1`) | unset | 2159 | 0 / 0 | 21,723 MB | Another default run on the 9070 XT went 21 minutes (see the `smoke.ps1` note below) and didn't crash either. These runs do use direct DXIL for graphics stages. That run logged graphics `direct DXIL fallback stage=PS` lines, and the graphics DXIL sent to the driver differs from the `=1` runs (median 140–147 KB against 170–199 KB). The driver-blob cache is off on AMD, so every run compiled through `amdxc64.dll`. In all 5 runs the title went on into world load (DirectStorage reads at 70–90 s), and presents had stopped by 120 s, as in #2996. **But it looks avoided, not fixed.** On `main`, every crash came right after the title created root signature `aed4a2841022bca7` (420 B). On this head the title never creates that one, not even in the 21-minute run. Three others that `main` gets are also missing: `164551478e4c908b`, `4a6575fdb37d6d1d`, `f0bb7c4edcaa7ae8`. The other 165 of `main`'s 169 show up, and through 60 s the draws per 2 s match `main`'s (`XCL_DIRECT_DXIL=1` there) to within 2 %. So something on `amd-dev` keeps the title from asking for that pipeline. Whatever it is, the translator may still have the bug. I'd keep #3544 open and rerun after the `main` → `amd-dev` sync, which touches the same code. **`smoke.ps1` on this branch:** `amd-dev`'s copy predates `main`'s `50f29611`. It sets `XCL_RUN_SECONDS`, `XCL_NETWORK=0` and `XCL_ACTIVITY` after the child's environment has been copied, so on Windows the title never ends itself. The timeout then kills only the launcher. The host keeps the output pipe open, and the script waits until the host is killed by hand. The sync brings the fix. Until then, setting the three variables in the shell before calling the script works. (The launcher-only kill on timeout is on `main` too. It only matters when the title doesn't end itself.) Setup: AMD Radeon RX 9070 XT 16 GB (driver 32.0.32015.2008, `amdxc64.dll` 8.18.10.0514) and the 9800X3D's iGPU (driver 32.0.21045.11001, `amdxc64.dll` 8.18.10.0500), 32 GB RAM, Windows 11 25H2 build 26200.9974, release build of `f9e31720`, no local changes. The page file on X: is fixed at 32 GB, so the title gets the 4,095 MB coherent window. ``` xcl-smoke v1 commit: f9e31720073817e7d328f5fd47e3d911b875aa32 gpu: AMD Radeon RX 9070 XT title: 21222967 seconds: 120 exit: 0x0 frames shown: 2379 (PresentX 2379) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 22992 MB ``` ``` xcl-smoke v1 commit: f9e31720073817e7d328f5fd47e3d911b875aa32 gpu: AMD Radeon(TM) Graphics title: 21222967 seconds: 120 exit: 0x0 frames shown: 2159 (PresentX 2159) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 21723 MB ``` **AI use:** Claude Code (Claude Opus 5.5) ran the build and the guarded runs, compared the logs with `main`'s and drafted this comment. I checked it before posting.
JR-Wiederkehr commented 2026-12-01 00:43:07 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JR-Wiederkehr on 2026-12-01T00:43:07Z.


Run on RX 7700XT, unhandled exception 0xc0000005 in amdxc64.dll+0x7380f8 (read at address 0x0) at [108.782], right after record 7381166e806847c9 starts compiling. This is consistent with main. However in #3554, applying the sync the other way around, in my regression run i did not run into this crash after my merge. Im still working on getting my regression run posted in the edit

<!-- greyfinch-sync:ivall/xcl:comment:7296655100 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3547#issuecomment-7296655100). Originally posted by [JR-Wiederkehr](https://github.com/JR-Wiederkehr) on 2026-12-01T00:43:07Z. --- Run on RX 7700XT, `unhandled exception 0xc0000005 in amdxc64.dll+0x7380f8 (read at address 0x0) at [108.782]`, right after record 7381166e806847c9 starts compiling. This is consistent with main. However in #3554, applying the sync the other way around, in my regression run i did not run into this crash after my merge. Im still working on getting my regression run posted in the edit
Chrysana commented 2026-12-01 04:09:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Chrysana on 2026-12-01T04:09:09Z.


Follow-up to my comment above: on Windows/AMD, the #3544 crash that #3243's default brings is the pipeline #3455 fixes. With #3455 merged on main d0832e61, both the RX 9070 XT and the RDNA2 iGPU compile that pipeline and get past the crash point with the default XCL_DIRECT_DXIL (details in #3544). So if #3455 lands in main before this merge, or comes along with it, the default should be safe on AMD here. Without it, AMD on Windows needs XCL_DIRECT_DXIL=1.

<!-- greyfinch-sync:ivall/xcl:comment:7300432096 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3547#issuecomment-7300432096). Originally posted by [Chrysana](https://github.com/Chrysana) on 2026-12-01T04:09:09Z. --- Follow-up to my comment above: on Windows/AMD, the #3544 crash that #3243's default brings is the pipeline #3455 fixes. With #3455 merged on `main` `d0832e61`, both the RX 9070 XT and the RDNA2 iGPU compile that pipeline and get past the crash point with the default `XCL_DIRECT_DXIL` ([details in #3544](https://github.com/xcl-dev/xcl/issues/3544)). So if #3455 lands in `main` before this merge, or comes along with it, the default should be safe on AMD here. Without it, AMD on Windows needs `XCL_DIRECT_DXIL=1`.
Foniass commented 2026-12-01 10:11:54 +00:00 (Migrated from github.com)

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


Triage (#1607) – head 1bb6108

This merges amd-dev (f9e31720) into main and then main 86e86fcb on top. #3554, which merged the same main commit into amd-dev the other way, was closed without merging. This branch now also has amd-dev's three newest commits (3a3a8e9c, 4d6d4a77, 41aa60ce) and conflicts with main again.
In this tree ComputeBuild::IndirectChain is gone from real.rs and dispatch_chain.rs is main's, so amd-dev's indirect-chain variants are dropped. Check that this is intended.
#3297 (group D267) handles the same buffer_delta UAV case differently: it always binds a null view, while amd-dev's patch_buffer_uav_delta here shifts the view by the delta. Several open PRs to main (#3310, #3477, #3479, #3480-#3483) are also contained in this branch.
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:7307819853 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3547#issuecomment-7307819853). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T10:11:54Z. --- **Triage (#1607)** – head 1bb6108 This merges amd-dev (f9e31720) into main and then main 86e86fcb on top. #3554, which merged the same main commit into amd-dev the other way, was closed without merging. This branch now also has amd-dev's three newest commits (3a3a8e9c, 4d6d4a77, 41aa60ce) and conflicts with main again. In this tree `ComputeBuild::IndirectChain` is gone from `real.rs` and `dispatch_chain.rs` is main's, so amd-dev's indirect-chain variants are dropped. Check that this is intended. #3297 (group D267) handles the same buffer_delta UAV case differently: it always binds a null view, while amd-dev's `patch_buffer_uav_delta` here shifts the view by the delta. Several open PRs to main (#3310, #3477, #3479, #3480-#3483) are also contained in this branch. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
lucsoft commented 2026-12-01 10:27:23 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by lucsoft on 2026-12-01T10:27:23Z.


Thanks. On the open points:

  • #3554: this PR supersedes it. It does the same catch-up in the other direction, and the plan (agreed with rayy) is that #3547 closes out amd-dev: once it is merged, AMD work continues on main, and open PRs to amd-dev are best retargeted to main (or redone against it) rather than merged into amd-dev first. So #3554 doesn't need to be redone against this one. Most of what AMD runs hit is not AMD-specific: XCL bugs or undefined behaviour that other drivers tolerate, or Wine/vkd3d-proton behaviour; the parts that are AMD-only can be gated by vendor on main.
  • ComputeBuild::IndirectChain: intended. main removed it in e8a36664 ("D3D12.X: indirect dispatches of a split program run its direct pieces"), which replaces amd-dev's indirect-chain variants; the merge keeps that and main's dispatch_chain.rs.
  • #3297 (D267) vs patch_buffer_uav_delta, and the open PRs to main already contained here (#3310, #3477, #3479, #3480-#3483): noted. When this lands, those become no-ops or need a rebase; I'll list them in the description.

The head is now 87edfef1: amd-dev 41aa60ce and main d0832e61 merged, plus a VFS fix from the merge and two test fixes (#2446's reload test with #3503, #3442's startup-preparation test on AMD). A regression run against plain main and plain amd-dev is in progress; the remaining failures come from amd-dev itself and are being fixed.

<!-- greyfinch-sync:ivall/xcl:comment:7308215417 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3547#issuecomment-7308215417). Originally posted by [lucsoft](https://github.com/lucsoft) on 2026-12-01T10:27:23Z. --- Thanks. On the open points: - **#3554:** this PR supersedes it. It does the same catch-up in the other direction, and the plan (agreed with rayy) is that #3547 closes out `amd-dev`: once it is merged, AMD work continues on `main`, and open PRs to `amd-dev` are best retargeted to `main` (or redone against it) rather than merged into `amd-dev` first. So #3554 doesn't need to be redone against this one. Most of what AMD runs hit is not AMD-specific: XCL bugs or undefined behaviour that other drivers tolerate, or Wine/vkd3d-proton behaviour; the parts that are AMD-only can be gated by vendor on `main`. - **`ComputeBuild::IndirectChain`:** intended. `main` removed it in e8a36664 ("D3D12.X: indirect dispatches of a split program run its direct pieces"), which replaces amd-dev's indirect-chain variants; the merge keeps that and `main`'s `dispatch_chain.rs`. - **#3297 (D267) vs `patch_buffer_uav_delta`**, and the open PRs to `main` already contained here (#3310, #3477, #3479, #3480-#3483): noted. When this lands, those become no-ops or need a rebase; I'll list them in the description. The head is now 87edfef1: amd-dev 41aa60ce and main d0832e61 merged, plus a VFS fix from the merge and two test fixes (#2446's reload test with #3503, #3442's startup-preparation test on AMD). A regression run against plain `main` and plain `amd-dev` is in progress; the remaining failures come from `amd-dev` itself and are being fixed.
throny commented 2026-12-02 10:36:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-12-02T10:36:21Z.


Testing this on an RTX 4080 16 GB now (head 30ca950e, plus our local input-timing patch): three 900 s world runs with XCL_RESIDENCY_PRIORITY=1, then the full suite merged on main. One reason it matters to us: amd-dev shows the outside through the start room's window where main shows it black (#3587's amd-dev build: window area 78–88 % bright vs 0–11 % on main 1c8b5514, same save and inputs). Results here when done.

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7342715490 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3547#issuecomment-7342715490). Originally posted by [throny](https://github.com/throny) on 2026-12-02T10:36:21Z. --- Testing this on an RTX 4080 16 GB now (head `30ca950e`, plus our local input-timing patch): three 900 s world runs with `XCL_RESIDENCY_PRIORITY=1`, then the full suite merged on `main`. One reason it matters to us: `amd-dev` shows the outside through the start room's window where `main` shows it black (`#3587`'s amd-dev build: window area 78–88 % bright vs 0–11 % on `main` `1c8b5514`, same save and inputs). Results here when done. AI use: Claude Code (Claude Opus 5.5).
capy-ai[bot] commented 2026-12-02 11:23:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by capy-ai[bot] on 2026-12-02T11:23:51Z.


The red PR description check on 30ca950e isn't caused by binary files. GitHub stops sending per-file patches once a PR's diff gets past its size limit. For this PR, the files API reports 25,434 changed lines out of the real 27,457, and the last 15 files (kernelx/sections.rs, hle/mod.rs, host.rs, lib.rs, loader.rs, main.rs, mem_map.rs, resolver.rs, shaders.rs, …) come back with changes: 0 and no patch. pr-check.yml writes that as binary=true, so scripts/pr_check.py flags them as "a binary file outside tests/data/". In git they're ordinary text diffs (for example lib.rs +8/−1 and host.rs +12/−0 against main 1c8b5514), and git diff --summary shows no mode changes.

So the check can't go green for a PR this size until the checker stops treating a missing patch as binary. Alternatively, split the PR below GitHub's diff limit. Since PR description is a required check in the main-required-checks ruleset, a maintainer will have to decide how to land it.

AI use: Capy (Claude Opus 5.5), posted on behalf of @macrophase-dev. The cause was checked with gh api repos/xcl-dev/xcl/pulls/3547/files and git diff. Nothing was built or run.

<!-- greyfinch-sync:ivall/xcl:comment:7343862661 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3547#issuecomment-7343862661). Originally posted by [capy-ai[bot]](https://github.com/apps/capy-ai) on 2026-12-02T11:23:51Z. --- The red `PR description` check on `30ca950e` isn't caused by binary files. GitHub stops sending per-file patches once a PR's diff gets past its size limit. For this PR, the files API reports 25,434 changed lines out of the real 27,457, and the last 15 files (`kernelx/sections.rs`, `hle/mod.rs`, `host.rs`, `lib.rs`, `loader.rs`, `main.rs`, `mem_map.rs`, `resolver.rs`, `shaders.rs`, …) come back with `changes: 0` and no `patch`. `pr-check.yml` writes that as `binary=true`, so `scripts/pr_check.py` flags them as "a binary file outside tests/data/". In git they're ordinary text diffs (for example `lib.rs` +8/−1 and `host.rs` +12/−0 against `main` `1c8b5514`), and `git diff --summary` shows no mode changes. So the check can't go green for a PR this size until the checker stops treating a missing patch as binary. Alternatively, split the PR below GitHub's diff limit. Since `PR description` is a required check in the `main-required-checks` ruleset, a maintainer will have to decide how to land it. AI use: Capy (Claude Opus 5.5), posted on behalf of @macrophase-dev. The cause was checked with `gh api repos/xcl-dev/xcl/pulls/3547/files` and `git diff`. Nothing was built or run.
throny commented 2026-12-02 12:05:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-12-02T12:05:09Z.


Test report for #3547 at head 30ca950e7 (testing only, not a merge check).

Tested

  • RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0 release.
  • Trial merge into main 1c8b55147, cargo test --workspace -- --test-threads=4: 3118 passed, 0 failed, 51 ignored; 26 SKIPPED lines; no test binary ended abnormally.
  • Retail title, three 900 s world runs with XCL_RESIDENCY_PRIORITY=1, default two-pass reserve:
    • presents/s (last 240 s): 0.34 (cold DXIL cache), 1.59, 2.14. For comparison, amd-dev + #3587 on the same setup gave 2.26–2.68; main gives ~3.0–3.2.
    • Skipped draws: 0.0 % in all three.
    • No device removal.
    • Video memory peak 14.1 / 15.4 / 15.7 GB, against a budget of ~15.1 GB.
  • Picture: the start room window stays dark in 3 of 3 runs, the same as main. amd-dev + #3587 (2ddf82273) showed the outside there in 8 of 8 runs, and amd-dev without #3587 (41aa60ce8) in 2 of 2, so the difference comes from main's side of this merge. One of those two amd-dev runs lost the device at 138 s (GPU page fault on a texture read). I'm bisecting 41aa60ce8..30ca950e7 now and will add the commit here.

Not tested

  • AMD and wave32 GPUs.
  • Gameplay beyond the start room.

AI use

  • Claude Code with Claude Opus 5.5 ran the builds, runs and suite, and wrote this report.
<!-- greyfinch-sync:ivall/xcl:comment:7344819877 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3547#issuecomment-7344819877). Originally posted by [throny](https://github.com/throny) on 2026-12-02T12:05:09Z. --- Test report for #3547 at head `30ca950e7` (testing only, not a merge check). **Tested** - RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0 release. - Trial merge into main `1c8b55147`, `cargo test --workspace -- --test-threads=4`: 3118 passed, 0 failed, 51 ignored; 26 `SKIPPED` lines; no test binary ended abnormally. - Retail title, three 900 s world runs with `XCL_RESIDENCY_PRIORITY=1`, default two-pass reserve: - presents/s (last 240 s): 0.34 (cold DXIL cache), 1.59, 2.14. For comparison, amd-dev + #3587 on the same setup gave 2.26–2.68; main gives ~3.0–3.2. - Skipped draws: 0.0 % in all three. - No device removal. - Video memory peak 14.1 / 15.4 / 15.7 GB, against a budget of ~15.1 GB. - Picture: the start room window stays dark in 3 of 3 runs, the same as main. amd-dev + #3587 (`2ddf82273`) showed the outside there in 8 of 8 runs, and amd-dev without #3587 (`41aa60ce8`) in 2 of 2, so the difference comes from main's side of this merge. One of those two amd-dev runs lost the device at 138 s (GPU page fault on a texture read). I'm bisecting `41aa60ce8`..`30ca950e7` now and will add the commit here. **Not tested** - AMD and wave32 GPUs. - Gameplay beyond the start room. **AI use** - Claude Code with Claude Opus 5.5 ran the builds, runs and suite, and wrote this report.
raylitebull commented 2026-12-03 15:01:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by raylitebull on 2026-12-03T15:01:18Z.


Windows/AMD smoke comparison for #3547 at head 533d8677d against main a815de932 (smoke test only, not a full merge-check).

Tested

  • AMD Radeon RX 9070 XT 16 GB (driver 32.0.32015.2008), Intel Core i5-13600KF, 64 GB RAM, Windows 11 Pro 22631, rustc 1.99.1, release builds, DXC 1.8.2502.11.
  • Default settings via scripts/smoke.ps1 -Seconds 60 (XCL_PREPARE=0, XCL_NETWORK=0), separate fresh XCL_DATA_ROOT and XCL_DXIL_CACHE per run.
  • Both builds booted cleanly past the #3694 split-wave64 amdxc64 crash point and completed 60 s with exit: 0x0, 0 device removals, and 0 crashes (1661 → 1640 frames, 98.7% of main; peak commit 16685 → 16083 MB).

main:

xcl-smoke v1
commit: a815de932c4dc8da3b383ca44f4b094aa406fec9
gpu: AMD Radeon RX 9070 XT
title: 29e814f5
seconds: 60
exit: 0x0
frames shown: 1661 (PresentX 1661)
presents per 2 s (last 3): 60 60 61
device removals: 0
crashes: 0
peak commit: 16685 MB

PR #3547:

xcl-smoke v1
commit: 533d8677dc912bedd7278ce8530cf70e84313151
gpu: AMD Radeon RX 9070 XT
title: 29e814f5
seconds: 60
exit: 0x0
frames shown: 1640 (PresentX 1640)
presents per 2 s (last 3): 57 59 41
device removals: 0
crashes: 0
peak commit: 16083 MB

Not tested

  • cargo test --workspace (not run locally in this pass).
  • NVIDIA, Intel, and gameplay past 60 s.

AI use: Google Antigravity (Gemini 4 Neon) built both release binaries, ran the two 60 s smoke comparisons, and drafted this comment.

<!-- greyfinch-sync:ivall/xcl:comment:7382427353 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3547#issuecomment-7382427353). Originally posted by [raylitebull](https://github.com/raylitebull) on 2026-12-03T15:01:18Z. --- Windows/AMD smoke comparison for `#3547` at head `533d8677d` against `main` `a815de932` (smoke test only, not a full merge-check). **Tested** - AMD Radeon RX 9070 XT 16 GB (driver `32.0.32015.2008`), Intel Core i5-13600KF, 64 GB RAM, Windows 11 Pro `22631`, `rustc 1.99.1`, release builds, DXC `1.8.2502.11`. - Default settings via `scripts/smoke.ps1 -Seconds 60` (`XCL_PREPARE=0`, `XCL_NETWORK=0`), separate fresh `XCL_DATA_ROOT` and `XCL_DXIL_CACHE` per run. - Both builds booted cleanly past the `#3694` split-wave64 `amdxc64` crash point and completed 60 s with `exit: 0x0`, 0 device removals, and 0 crashes (`1661 → 1640` frames, `98.7%` of `main`; peak commit `16685 → 16083 MB`). `main`: ``` xcl-smoke v1 commit: a815de932c4dc8da3b383ca44f4b094aa406fec9 gpu: AMD Radeon RX 9070 XT title: 29e814f5 seconds: 60 exit: 0x0 frames shown: 1661 (PresentX 1661) presents per 2 s (last 3): 60 60 61 device removals: 0 crashes: 0 peak commit: 16685 MB ``` PR `#3547`: ``` xcl-smoke v1 commit: 533d8677dc912bedd7278ce8530cf70e84313151 gpu: AMD Radeon RX 9070 XT title: 29e814f5 seconds: 60 exit: 0x0 frames shown: 1640 (PresentX 1640) presents per 2 s (last 3): 57 59 41 device removals: 0 crashes: 0 peak commit: 16083 MB ``` **Not tested** - `cargo test --workspace` (not run locally in this pass). - NVIDIA, Intel, and gameplay past 60 s. AI use: Google Antigravity (Gemini 4 Neon) built both release binaries, ran the two 60 s smoke comparisons, and drafted this comment.
raylitebull commented 2026-12-03 18:05:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by raylitebull on 2026-12-03T18:05:30Z.


Follow-up RX 9070 XT (32.0.32015.2008, DXC 1.8.2502.11) test on 533d8677d across 604 recorded retail graphics pipelines (used-graphics-pipelines.bin) and longer runs:

  • Not a #3547 regression: both main (a815de932) and #3547 (533d8677d) hit the exact same two amdxc64.dll 0xc0000005 crashes during 604-PSO graphics prep (302 / 604 confirmed, 3/6 workers failed: +0x85f80f ×2 and +0x735dd8 ×1 on both trees).
  • Split of the two crashes on RDNA4:
    1. amdxc64.dll+0x85f80f (also hit in live runs on ps 26aa07cb05c04290) is the DXC GVN pixel-shader crash fixed by #3733 (-opt-disable gvn on ps_*, which affects DXC 1.8 too). Cherry-picking #3733 onto 533d8677d eliminated +0x85f80f completely.
    2. amdxc64.dll+0x735dd8 comes from Direct DXIL graphics (XCL_DIRECT_DXIL=all, both main and #3547); XCL_DIRECT_DXIL=1 avoids it.
  • With #3547 (533d8677d) + #3733 + XCL_DIRECT_DXIL=1: 604 / 604 graphics PSOs built with 0 failures, and a 180 s smoke run completed clean (5,251 frames, 60 60 60 presents / 2 s, 0 device removals, 0 crashes, 21,048 MB peak commit).

(Separate minor note on Windows AMD prep: with 64 GB RAM, prepare_workers() auto-scales to 16 concurrent workers on main/#3547, where 7/16 fail with 0x887A0005 on D3D12CreateDevice; XCL_PREPARE_WORKERS=6 passes 0/6 failed — same issue #3602 addresses.)

AI use: Google Antigravity (Gemini 4 Neon) ran the comparative replays, cherry-picked #3733 locally for testing, ran the 180 s smoke, and drafted this note.

<!-- greyfinch-sync:ivall/xcl:comment:7387587320 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3547#issuecomment-7387587320). Originally posted by [raylitebull](https://github.com/raylitebull) on 2026-12-03T18:05:30Z. --- Follow-up RX 9070 XT (`32.0.32015.2008`, DXC `1.8.2502.11`) test on `533d8677d` across 604 recorded retail graphics pipelines (`used-graphics-pipelines.bin`) and longer runs: - **Not a `#3547` regression:** both `main` (`a815de932`) and `#3547` (`533d8677d`) hit the exact same two `amdxc64.dll` `0xc0000005` crashes during 604-PSO graphics prep (`302 / 604` confirmed, 3/6 workers failed: `+0x85f80f` ×2 and `+0x735dd8` ×1 on both trees). - **Split of the two crashes on RDNA4:** 1. `amdxc64.dll+0x85f80f` (also hit in live runs on `ps 26aa07cb05c04290`) is the DXC GVN pixel-shader crash fixed by `#3733` (`-opt-disable gvn` on `ps_*`, which affects DXC 1.8 too). Cherry-picking `#3733` onto `533d8677d` eliminated `+0x85f80f` completely. 2. `amdxc64.dll+0x735dd8` comes from Direct DXIL graphics (`XCL_DIRECT_DXIL=all`, both `main` and `#3547`); `XCL_DIRECT_DXIL=1` avoids it. - With `#3547` (`533d8677d`) + `#3733` + `XCL_DIRECT_DXIL=1`: **`604 / 604` graphics PSOs built with 0 failures**, and a 180 s smoke run completed clean (**5,251 frames**, `60 60 60` presents / 2 s, 0 device removals, 0 crashes, `21,048 MB` peak commit). *(Separate minor note on Windows AMD prep: with 64 GB RAM, `prepare_workers()` auto-scales to 16 concurrent workers on `main`/`#3547`, where 7/16 fail with `0x887A0005` on `D3D12CreateDevice`; `XCL_PREPARE_WORKERS=6` passes `0/6` failed — same issue `#3602` addresses.)* AI use: Google Antigravity (Gemini 4 Neon) ran the comparative replays, cherry-picked `#3733` locally for testing, ran the 180 s smoke, and drafted this note.
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/3547:upstream-pr/3547'
git switch 'upstream-pr/3547'

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