Merge amd-dev into main #3547
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3547"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by lucsoft on 2026-11-30T21:32:02Z.
Moves
amd-devintomain: 176 commits, +26.4k/−1.0k in 103 files against currentmain(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 onmain: 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 asamd-devhas them and need a non-AMD test pass.What is in it
amd-devup tofae6f90e: 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)amd-devneeded to stay stable, applied on top:c909fb83split chains read what the slicer wrote (#3536's373e22e1),1becd37cindirect guard compiled with DXC (#3536)a3b6cf97tile mappings whose Signal failed (#3566),d1ba113breserved textures with live page tables (#3553)e78c0a43release PC allocators that had a heavy cycle,9f173d9dGPU wait watchdog names the recorded workb6aebe7dthe five memory switches above off by default;1bb61081,30ca950elet the vram / vram_small tests turn on the path they testmain1c8b5514merged (dd6cec72): 8 conflicting files, both sides kept; inbind.rsmain'sexecute_indirect_chainis used andamd-dev's extraChecked::readat the call site dropped (it would transition the guard's buffer twice)Tested
x86_64-pc-windows-gnu--test-threads=2, not 4: under Wine one very heavy test ran the machine out of memory with more threads),30ca950eagainstmain1c8b5514on the same machine:serialize_root_signature_*, hangs under Wine);main: 2735 passed, 17 failed, 31 ignored, 1 died – 16 of them fail on both; the 17th istitle_texturesbelow on the PR andgpu_ps_readfirstlane_loop_on_a_primitive_edge_endsonmainmain: 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_heldfailed once in the suite run (that group fails together under Wine when one test panics) and passed alone 2/2; it is not onmainuma_drivernot run (~32 GB under Wine)d3d12SDKLayers.dll, nodxc.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 probedd6cec72(vram_small::gpu_small_textures_pack_at_4k_granularity_and_preserve_pixels, the switch now off) is fixed in30ca950e:vram_small5 passed, 0 failed hereRegression run
main1c8b5514did 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 atdd6cec72(the same tree without the test fix30ca950e), 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 thetitle:line of both blocks now showssmoke.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:
PR:
Not tested
uma_drivertestsAI use
maininto the branch and resolved the conflicts, the vram_small test fix (30ca950e), the test and game runs above, this descriptionc909fb83–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
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 #3444amd-devnow has #3243, which makesXCL_DIRECT_DXIL=allthe default. On currentmainthat 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:
XCL_DIRECT_DXILall)1XCL_ADAPTER=1)Another default run on the 9070 XT went 21 minutes (see the
smoke.ps1note below) and didn't crash either. These runs do use direct DXIL for graphics stages. That run logged graphicsdirect DXIL fallback stage=PSlines, and the graphics DXIL sent to the driver differs from the=1runs (median 140–147 KB against 170–199 KB). The driver-blob cache is off on AMD, so every run compiled throughamdxc64.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 signatureaed4a2841022bca7(420 B). On this head the title never creates that one, not even in the 21-minute run. Three others thatmaingets are also missing:164551478e4c908b,4a6575fdb37d6d1d,f0bb7c4edcaa7ae8. The other 165 ofmain's 169 show up, and through 60 s the draws per 2 s matchmain's (XCL_DIRECT_DXIL=1there) to within 2 %. So something onamd-devkeeps 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 themain→amd-devsync, which touches the same code.smoke.ps1on this branch:amd-dev's copy predatesmain's50f29611. It setsXCL_RUN_SECONDS,XCL_NETWORK=0andXCL_ACTIVITYafter 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 onmaintoo. It only matters when the title doesn't end itself.)Setup: AMD Radeon RX 9070 XT 16 GB (driver 32.0.32015.2008,
amdxc64.dll8.18.10.0514) and the 9800X3D's iGPU (driver 32.0.21045.11001,amdxc64.dll8.18.10.0500), 32 GB RAM, Windows 11 25H2 build 26200.9974, release build off9e31720, no local changes. The page file on X: is fixed at 32 GB, so the title gets the 4,095 MB coherent window.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.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 editImported 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
maind0832e61, both the RX 9070 XT and the RDNA2 iGPU compile that pipeline and get past the crash point with the defaultXCL_DIRECT_DXIL(details in #3544). So if #3455 lands inmainbefore this merge, or comes along with it, the default should be safe on AMD here. Without it, AMD on Windows needsXCL_DIRECT_DXIL=1.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T10:11:54Z.
Triage (#1607) – head
1bb6108This merges amd-dev (
f9e31720) into main and then main86e86fcbon 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::IndirectChainis gone fromreal.rsanddispatch_chain.rsis 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_deltahere 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.
Imported from ivall/xcl. Originally posted by lucsoft on 2026-12-01T10:27:23Z.
Thanks. On the open points:
amd-dev: once it is merged, AMD work continues onmain, and open PRs toamd-devare best retargeted tomain(or redone against it) rather than merged intoamd-devfirst. 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 onmain.ComputeBuild::IndirectChain: intended.mainremoved it ine8a36664("D3D12.X: indirect dispatches of a split program run its direct pieces"), which replaces amd-dev's indirect-chain variants; the merge keeps that andmain'sdispatch_chain.rs.patch_buffer_uav_delta, and the open PRs tomainalready 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-dev41aa60ceand maind0832e61merged, 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 plainmainand plainamd-devis in progress; the remaining failures come fromamd-devitself and are being fixed.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 withXCL_RESIDENCY_PRIORITY=1, then the full suite merged onmain. One reason it matters to us:amd-devshows the outside through the start room's window wheremainshows it black (#3587's amd-dev build: window area 78–88 % bright vs 0–11 % onmain1c8b5514, same save and inputs). Results here when done.AI use: Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by capy-ai[bot] on 2026-12-02T11:23:51Z.
The red
PR descriptioncheck on30ca950eisn'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 withchanges: 0and nopatch.pr-check.ymlwrites that asbinary=true, soscripts/pr_check.pyflags them as "a binary file outside tests/data/". In git they're ordinary text diffs (for examplelib.rs+8/−1 andhost.rs+12/−0 againstmain1c8b5514), andgit diff --summaryshows 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 descriptionis a required check in themain-required-checksruleset, 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/filesandgit diff. Nothing was built or run.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
1c8b55147,cargo test --workspace -- --test-threads=4: 3118 passed, 0 failed, 51 ignored; 26SKIPPEDlines; no test binary ended abnormally.XCL_RESIDENCY_PRIORITY=1, default two-pass reserve: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 bisecting41aa60ce8..30ca950e7now and will add the commit here.Not tested
AI use
Imported from ivall/xcl. Originally posted by raylitebull on 2026-12-03T15:01:18Z.
Windows/AMD smoke comparison for
#3547at head533d8677dagainstmaina815de932(smoke test only, not a full merge-check).Tested
32.0.32015.2008), Intel Core i5-13600KF, 64 GB RAM, Windows 11 Pro22631,rustc 1.99.1, release builds, DXC1.8.2502.11.scripts/smoke.ps1 -Seconds 60(XCL_PREPARE=0,XCL_NETWORK=0), separate freshXCL_DATA_ROOTandXCL_DXIL_CACHEper run.#3694split-wave64amdxc64crash point and completed 60 s withexit: 0x0, 0 device removals, and 0 crashes (1661 → 1640frames,98.7%ofmain; peak commit16685 → 16083 MB).main:PR
#3547:Not tested
cargo test --workspace(not run locally in this pass).AI use: Google Antigravity (Gemini 4 Neon) built both release binaries, ran the two 60 s smoke comparisons, and drafted this comment.
Imported from ivall/xcl. Originally posted by raylitebull on 2026-12-03T18:05:30Z.
Follow-up RX 9070 XT (
32.0.32015.2008, DXC1.8.2502.11) test on533d8677dacross 604 recorded retail graphics pipelines (used-graphics-pipelines.bin) and longer runs:#3547regression: bothmain(a815de932) and#3547(533d8677d) hit the exact same twoamdxc64.dll0xc0000005crashes during 604-PSO graphics prep (302 / 604confirmed, 3/6 workers failed:+0x85f80f×2 and+0x735dd8×1 on both trees).amdxc64.dll+0x85f80f(also hit in live runs onps 26aa07cb05c04290) is the DXC GVN pixel-shader crash fixed by#3733(-opt-disable gvnonps_*, which affects DXC 1.8 too). Cherry-picking#3733onto533d8677deliminated+0x85f80fcompletely.amdxc64.dll+0x735dd8comes from Direct DXIL graphics (XCL_DIRECT_DXIL=all, bothmainand#3547);XCL_DIRECT_DXIL=1avoids it.#3547(533d8677d) +#3733+XCL_DIRECT_DXIL=1:604 / 604graphics PSOs built with 0 failures, and a 180 s smoke run completed clean (5,251 frames,60 60 60presents / 2 s, 0 device removals, 0 crashes,21,048 MBpeak commit).(Separate minor note on Windows AMD prep: with 64 GB RAM,
prepare_workers()auto-scales to 16 concurrent workers onmain/#3547, where 7/16 fail with0x887A0005onD3D12CreateDevice;XCL_PREPARE_WORKERS=6passes0/6failed — same issue#3602addresses.)AI use: Google Antigravity (Gemini 4 Neon) ran the comparative replays, cherry-picked
#3733locally for testing, ran the 180 s smoke, and drafted this note.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.