Memory: avoid amdgpu userptr stalls under Wine (#175) #871
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!871
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-871"
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?
@gustavsi on GitHub · 2026-11-24 07:07 UTC · original
gustavsi:wine/amdgpu-userptr-cap→main· +705 −64 · 13 files · 2 commits · openAvoid
amdgpuuserptrsubmission stalls under Wine/vkd3d-proton on Linux by capping the coherent UMA window to 512 MiB on AMD GPUs (withoutMEM_WRITE_WATCH) and routing overflowPAGE_GRAPHICS_*heaps into the sparse VRAM windows. Part of #175 and #1701.Stacked on #867; only the top commit (
8f08d7cd) belongs here.On Linux with
amdgpu, importing a multi-GiB coherent UMA window viaOpenExistingHeapFromAddress(VK_EXT_external_memory_hostuserptr) causes two severe stalls:GetWriteWatch(WRITE_WATCH_FLAG_RESET)on theuserptrrange triggersamdgpuMMU-notifier evictions (~100–200 ms per submit).userptrBO stalls every Vulkan GPU submission (~150 ms/frame, droppingPresentXframes).All new paths are gated behind
util::under_wine(); native Windows behavior is unchanged.What is in it
crates/xcl/src/gpu/uma.rs:coherent_hint()cap under Wine on AMD GPUs (wine_amd_gpu()via DXGIVendorId == 0x1002), so NVIDIA Linux keeps a full-size coherent window unlessXCL_COHERENT_MBis explicitly set (per @notdxbi's RTX 5060 benchmark).MEM_WRITE_WATCHunder Wine and omit it fromwatch_regions().crates/xcl/src/hle/d3d12x/title_textures.rs&crates/xcl/src/hle/dstorage.rs:title_textures::mark_dirty_rangeand call it on DirectStorage copies into coherent memory under Wine.copy_committed_region(ReadProcessMemory) inread_committed/title_bytes/refreshunder Wine instead of rawcopy_nonoverlapping/from_raw_parts, fixing the0xc0000005ucrtbase.dllmemcpyfault on unreadable coherent-window pages reported by @TobiasFornell.crates/xcl/src/hle/kernelx.rs:PAGE_GRAPHICS_*VirtualAlloccalls under Wine into the sparse VRAM windows when the coherent window is full.Tested
GE-Proton11-14-x86_64,vkd3d-proton(-Db_ndebug=true), DXC 1.9.2609.5, cross-compiledx86_64-pc-windows-msvc(clang-cl+lld-link).main08db8020+ updated #867 (e57cb659, with theUnadoptGuardCOM reference pin and alignment guard) at8f08d7cdand verified under Proton (--test-threads=1):gpu::uma::: 12 passed, 0 failed, 0 ignoredhle::d3d12x::title_textures::: 19 passed, 0 failed, 0 ignoredhle::d3d12x::real::: 62 passed, 0 failed, 0 ignoredpwsh ./scripts/smoke.ps1(withGE-Proton11-14wrapper): improved from18frames (PresentX 19,0 0 1/2 s) on #867 to1278frames (PresentX 1278,55 53 45/2 s) with0crashes and0device removals.Regression run
Produced under Wine (
GE-Proton11-14, AMD Radeon RX 9060 XT,XCL_NETWORK=0 XCL_PSO_PRELOAD=0 XCL_RUN_SECONDS=60 XCL_ACTIVITY=1,VKD3D_CONFIG=""). The PR run used unmodifiedpwsh ./scripts/smoke.ps1via a thin Wine wrapper;main(e0d93c84) crashed before writingreport.json, so its block was extracted from the samexcl.log(peak commit: 0 MBis what Wine reports inxcl.log).main(e0d93c84):This PR (
8f08d7cd, stacked on #867):Not tested
util::under_wine()).0x1002; non-AMD fallback path is unchanged from upstream).AI use
main(08db8020) + updated #867 (e57cb659), running the Proton test/smoke verification, and drafting this update.mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #175mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #175@SlopTart on GitHub · 2026-11-24 08:09 UTC · original
Linux / AMD RDNA3 lane report, head
de6d71cmerged onto main1ec4c98(lane merge shas: 877d905182, 8718e45b96, 867ad333d2- see my note that all three of the #175-cluster PRs show the identical signature, whichever lands).This PR hard-crashes the test harness on my Wine/RDNA3 lane. Not a test failure: the lib test binary dies with exit status 5, no panic message, no failure list. Everything after it (e2e, gpu_compute_e2e, pls_quota, predication_e2e targets) then fails to run, which is why the lane totals look collapsed (36 passed / 2 suites).
Crash point, pinned with sequential runs (
--test-threads=1): it dies at or immediately aftergpu::recomp::tests::gpu_sparse_vram_descriptors_buffers_and_xmem, the sparse-VRAM test. That test passes clean on plain main1ec4c98on this exact rig (3 separate lanes this batch,... ok), and passed on this rig before. So the crash is attributable to this PR's change to the sparse/VRAM path, not the environment.Reproduced 3/3: full-suite lane run, isolated lib rerun, and a
--test-threads=1run.Counts only, no game data.
Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross
x86_64-pc-windows-gnu,XCL_NETWORK=0, release profile. My Linux rows: #42 / #718.AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
@freemanovec on GitHub · 2026-11-24 08:23 UTC · original
Written by an AI agent (Claude Code, Claude Opus 5.5) on this account, from runs on this machine.
A second RDNA3 data point for this PR and #867: RX 7900 XTX, Mesa 26.3.1 RADV, CachyOS (kernel 7.3.5), Wine 11.22 (Arch build, kernel write watches), vkd3d-proton v3.1 (
4522cc1a) with #257's patch and-Db_ndebug=true, DXVK from Proton Experimental, DXC 1.9.2609. XCL cross-built forx86_64-pc-windows-gnuwith llvm-mingw (plus-Wl,-u,_tls_used, see #464), release,XCL_NETWORK=0. The newer retail game, 300 s per run, A held 6 s at 90/130/170/210/250 s.maina1672efa1672ef+ a local change like cmt8's2b10a05, gated by a start-up probe (coherent window left out of the look, its textures hashed every look)de6d71c(with #867)a1672efXCL_LATE_RELEASE=0mainthe stack crashes unlessXCL_LATE_RELEASE=0: an access violation in title code, then one in a vkd3d-proton worker writing through overwritten memory. So it is the combination with #866's late release (e7da8a1); root cause not found. This may be the same thing as @SlopTart's exit 5 above. Thesparsefilter of the lib tests passed on that build both ways (14 passed, 0 failed, 1 ignored); the full lib suite was not run there.de6d71c, under Wine (debug,--test-threads=4):gpu::uma7/0/0,title_textures13/0/0,sparse14/0/1,dstorage13/0/0 (passed/failed/ignored), no SKIPPED. #867's changes work with the patched vkd3d-proton as well (no E_INVALIDARG, no fence errors); not run with the stock release.OpenExistingHeapFromAddressread-only and then submitting getsradv/amdgpu: The CS has been rejected (-1)and the device removed (0x887A0005). So leaving the coherent window out under Wine, as here, looks like the only option for that window on amdgpu.Not run: Windows, NVIDIA, stock vkd3d-proton,
scripts/smoke.ps1, the full suite on these builds.mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #175mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #175mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #175@notdxbi on GitHub · 2026-11-24 13:20 UTC · original
An NVIDIA data point for the 512 MB default. RTX 5060 8 GB (NVIDIA 595.112.07), Wine 11.22 Staging, vkd3d-proton master + relaxed lookups + dxil-spirv
53aac41; XCL47efa2e+de6d71c+ #684, release; retail 1.0.2.1 withXCL_NETWORK=0 XCL_PSO_WAIT_MS=50 XCL_PRESS_A_AT=40. Two 150 s runs, same build and settings, onlyXCL_COHERENT_MBchanged:XCL_COHERENT_MB=4095So on this card the small window costs about a quarter of the frames during the intro and loading, where on RADV it is the other way round. Keying the default on the driver (amdgpu) rather than on Wine might be worth it.
Not tested: AMD, Windows, a GPU with more than 8 GB. AI use: Claude Code with Claude Opus 5.5 ran the builds and runs and wrote this; I checked it.
@gustavsi on GitHub · 2026-11-24 15:14 UTC · original
Rebased onto
main(930e8b4) + updated #867 (46944c2) at45b805c:coherent_hint()cap under Wine on AMD GPUs (wine_amd_gpu()via DXGIVendorId == 0x1002), so NVIDIA Linux keeps a full-size coherent window unlessXCL_COHERENT_MBis set.late_release/ exit-5 crashes (@SlopTart, @freemanovec): fixed in #867 (real::create_raw_fencefor XCL's internal fences).content_hashread intitle_textures.rswithcrate::gpu::shader::readableso a decommitted page cannot fault.gpu::uma::tests7/0,title_textures::tests13/0,sparse::tests14/0/1,dstorage::tests14/0,gpu_sparse_vram_descriptors_buffers_and_xmem1/0 (with DXC), and 60 s smoke at1351frames shown (54 55 55presents/2 s, 0 crashes, 0 removals,late_releaseON). Thanks @freemanovec, @notdxbi, and @fromthemoonx for the measurements.@gustavsi on GitHub · 2026-11-24 16:45 UTC · original
Rebased onto
main(b7aa9f3) + updated #867 (6e94390) atb66a150:0xc0000005ucrtbase.dllmemcpyfault (@TobiasFornell on #877):title_textures::read_committedandtitle_byteswere still using rawcopy_nonoverlapping/from_raw_partson the coherent window under the assumption that every page stays readable. Routed coherent-window reads inread_committed,title_bytes, andrefreshthroughcopy_committed_region(ReadProcessMemory) under Wine so an unreadable/decommitted coherent page never faults (native Windows path unchanged).GE-Proton11-14/vkd3d-proton ec20719452e916b(-Db_ndebug=true):gpu::uma::tests7/0,title_textures::tests13/0,sparse::tests14/0/1,dstorage::tests17/0,--exact gpu_sparse_vram_descriptors_buffers_and_xmem gpu_valu_float_and_int2/0, and a clean 60 s smoke run (exit 0x0,1333frames shown /1333PresentX,55 53 52presents/2 s,0crashes,0removals). Thanks @crastinator for the RDNA2 suite run!@Tymon3310 on GitHub · 2026-11-24 19:18 UTC · original
Test report: #871 at
b66a150(includes #8676e94390)Tested
af89350c, assert-free build) via umu-launchercargo build --release -p xcl --target x86_64-pc-windows-gnu(rustc 1.96.0, mingw-w64 GCC 16.2), DXC 1.9.2609xcl run <folder>, a 240 s run: first frame at ~8 s, then a steady 30.0 fps ("frames presented, 30.0 fps over the last 300" throughout), 131 072 draws and 6 320 dispatches with translated pipelines (0 skipped), no crash, no device removal. Coherent window 116/512 MB.main(c160d86) plus a minimal local patch that only gave vkd3d the native vtable for allocators/lists (and droppedD3D12_FENCE_FLAG_SHARED) reached the same title screen but ran at ~0.3 fps. ItsGetWriteWatchon single small ranges took up to 176 ms per call, which matches the userptr stall #871 describes. Unpatchedmainhits E_INVALIDARG fromCreateCommandList1.3 s in.Not tested
cargo test), thesmoke.ps1regression runs, Windows and NVIDIAAI use
xcl.log.@gustavsi on GitHub · 2026-11-24 19:47 UTC · original
Thanks @Tymon3310 for the RX 6800 XT / second-title verification (0.3 fps → steady 30.0 fps over 240 s with 0 crashes/removals)! Great to have RDNA2 confirmation beyond the first title as well.
@DavidM1911 on GitHub · 2026-11-25 10:02 UTC · original
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.@St5sz2Jk on GitHub · 2026-11-25 13:54 UTC · original
On RDNA4 under Wine,
maindoes not start the retail title without this PR: it stops 2.7 s in. With #871 it runs. A merge onto currentmainthat resolves the conflicts @DavidM1911 hit isSt5sz2Jk/xclpr871-on-main(e086ff9), in case it saves @gustavsi time.Setup: RX 9070 XT 16 GB (RDNA4), Mesa RADV 26.3.1, Ryzen 9 5950X, 128 GB, CachyOS kernel
7.3.5-2-cachyos, Wine 11.22, vkd3d-protonec207194(-Db_ndebug=true, with thefast_dominates, recursion andLoopMergeTracerdxil-spirv fixes). Release, cross-built forx86_64-pc-windows-msvc. Retail 1.0.2.1,XCL_RUN_SECONDS=15,XCL_NETWORK=0, no input, one run each.main1a0bbe30x80000003at+0x2478b7b, 2.75 s,rax = rdx = 0x80070057(E_INVALIDARG), right after the title's firstID3D12CommandAllocatormaincbc296acbc296a+ #684cbc296a+ #684 + #871main1a0bbe3+ #871 (the merge above)exit 0main1a0bbe3withXCL_COHERENT_MB=5120x80000003at+0x2478b7bagain, so the coherent window size alone is not what #871 fixes hereVKD3D_CONFIG=ignore_shared_fence(as #257'ssmoke.shsets it) makes no difference tomain's stop. I haven't narrowed down which part of #871 does it.The merge (
e086ff9, one merge commit ofb3f2f7conto1a0bbe3):uma.rs:main's per-window coherent loop with #871's Wine flags (noMEM_WRITE_WATCH);wine_amd_gpu()next tomain'scoherent_hint_for().main's new 8/16-window test now expects no coherent watch region under Wine, as #871's own test does.real.rs:ExecuteCommandListskeepsmain'snote_resubmitsand #871'sUnadoptGuard; both test modules.title_textures.rs:main's streamed recheck, then #871's Wine hash condition.vram.rs:main's fence and retire fence, both fromcreate_raw_fence.gpu::uma12 passed,hle::d3d12x::real58 passed,title_textures18 passed,vram15 passed (1 ignored), 0 failed.Not tested: the merge on native Windows, the whole suite on it, a regression pair (
smoke.sh/smoke.ps1), NVIDIA.AI use: Claude Code (Claude Opus 5.5) ran the start tests, resolved the merge and wrote this comment.
@gustavsi on GitHub · 2026-11-25 15:20 UTC · original
Thanks @DavidM1911 and @St5sz2Jk (especially for sharing your clean conflict notes)!
Rebased onto
main(06c9f55) + updated #867 (7a4954c) at34cd677:main's multi-window coherent loop (coherent_hint_for, 8/16-window test watch regions under Wine) andtitle_textures::recheck_streamed_unwatchedcleanly.GE-Proton11-14:gpu::uma::12/0,title_textures::18/0,vram::15/0/1,real::58/0, and a fresh 60 s smoke run (exit: 0x0,1035frames,0crashes,0removals).@GreemSC on GitHub · 2026-11-25 19:17 UTC · original
A race in
UnadoptGuard(this PR'sreal.rs, carried by #877 and #1732 too), seen once as a crash inpso_releasewith #1732 + #2404 on top.What happened:
unhandled exception 0xc0000005 in xcl.exe+0x3557ae (read at address 0x10), rax = 0, 101 s into a run of the retail title, right after the first#101. Symbolized with the build's PDB:How we read it:
UnadoptGuard::enterwrites the native vtable pointer into the object itself (*(obj as *mut usize) = orig) for the length of the call, and the guard is taken on a pipeline state passed toReset(_pso_guard = UnadoptGuard::new(init_pso)inreset_listcallers). A pipeline state is shared: another thread can drop its last reference at the same moment. That thread enterspso_releasethrough the extended table, thenorig_fn(this, 2)re-reads*this, now the native table, and takesnative[-1]as the original table: it is 0 under vkd3d-proton, so it reads address0 + 2 * 8 = 0x10. #2404 makes this likelier because its chained ExecuteIndirect holds and releases piece pipelines from other threads (the recordings dropped at allocator reset, thexcl-chain-wholebuilder).What we run locally (not a fix of the design, just the crash): in
orig_fn, when the table before the current one is null, the current table is the native one and is used directly:It relies on the word before vkd3d-proton's vtables being 0, which held here but is not guaranteed. A sturdier way would be to not write the shared object's vtable at all for objects other threads can reach (pipeline states), e.g. only unadopt the list and allocator, or pass vkd3d-proton an unadopted alias.
Counts, for what they are worth: 1 crash in 6 runs of this stack with #2404 on top (180–600 s each), 0 in 2 runs (330 s) with the
orig_fnchange. Too few runs to show a fix by numbers; the reading above is the evidence.Setup: RX 7900 XT, Mesa 26.2.5 RADV, Linux 7.2, Proton-CachyOS Wine 11, a local vkd3d-proton build;
main68a284a+ #1732 (2fb4601, which carries this PR) + #684 + #1860 + part of #203 + #2097 + #2404 + local logging;XCL_DIRECT_DXIL=1 XCL_PSO_WAIT_MS=50; retail 1.0.2.1.AI use: Claude Code (Claude Opus 5.5) read the crash, the code and the logs, ran the runs and wrote this.
@gustavsi on GitHub · 2026-11-25 19:43 UTC · original
Rebased onto
main(2898511) + updated #867 (c79e3b3) atcfcdca7, verified Proton tests (gpu::uma::12/0,title_textures::19/0,vram::19/0/1,sparse::20/0/1,real::60/0) and a fresh 60 spwsh ./scripts/smoke.ps1run (exit: 0x0,1067frames,59 60 58/2 s,0crashes,0removals).@gustavsi on GitHub · 2026-11-25 20:32 UTC · original
Thanks @GreemSC for the crystal-clear PDB root-cause analysis on the
UnadoptGuard/orig_fnrace!Fixed in #867 (
f98da36d) and rebased here at153730d7:UnadoptGuardis now refcounted per object pointer with atomic vtable stores so concurrent guards on shared objects (PSOs, heaps, resources) don't restore the extended vtable early.orig_fnchecks a lock-freeis_known_nativeset (registered beforeUnadoptGuardwritesorig) and returns*ext.add(slot)directly when another thread's guard temporarily restored the native table — no reliance onnative[-1] == 0.UnadoptGuardcompletely.pwsh ./scripts/smoke.ps1run (exit: 0x0,1317frames,55 55 53/2 s,0crashes,0removals).@ClosetPie107 on GitHub · 2026-11-25 21:14 UTC · original
Independent AMD RDNA4 / Linux (RADV, native wave64) retail bisect for head
153730d765b95746b31de6c6955bf56180b131b4(merged cleanly ontomain6d12f58).Hardware & environment
experimental-11.0-20261112),vkd3d-protonmasterec207194(3.2.0) +dxil-spirvb540c8a2+ relaxed-vtable patch (-Db_ndebug=true), DXVKv3.1.1-209, DXC1.9.2609.5, Rustx86_64-pc-windows-gnu(release)Retail title (1.0.2.1, pressing
Apast menus): deterministic0xc0000005crash at76.6 sreading0x400016000Flags:
XCL_DIRECT_DXIL=1,XCL_TEXTURE_LEVEL_PAGES=1,XCL_PSO_WAIT_MS=50,XCL_SPLIT_MIDLIST_WAIT=0,XCL_COHERENT_MB=1024,VKD3D_CONFIG=ignore_shared_fence,XCL_PSO_PRELOAD=0,XCL_NETWORK=0.main(55d64c2,2898511,6d12f58+ unrelated PRs): runs 300 s past menus withsparse ~7,447 MB,~10.4 GiBVRAM at 75 s, and 0 crashes inxg::copy_from.#871alone (153730d7on6d12f58):sparse 11,413 MB(91,136tiles mapped,9,152 MBuploaded over 4,096 submits), VRAM13,935 MiBat 75 s.76.600 s(13,448 translated draws, 2,048 dispatches) with0xc0000005inucrtbase.dll+0x1720breading0x400016000(sparse window 0) on thread464:#877(aec41e2at76.844 sand08abaa07at77.356 s, all reading0x400016000), confirming it originates in#871's overflow-to-sparse routing rather than#877's lazy mapping.Not tested
#871in isolation, native Windows, or menu-only 60 s smoke withoutAinput.AI use
#871ontomain, ran the retail bisect under Proton on this machine, symbolized the crashing thread stack, and drafted this report.@St5sz2Jk on GitHub · 2026-11-26 00:01 UTC · original
@ClosetPie107 The crash in your
#871alone row (ucrtbasememcpy reading0x400016000, inChain::detile_levelunderxg::copy_from) is #477. #684 fixes it: XCL readCopyFromSubresource's arguments with the wrong ABI, so it copied from the wrong address.Today, same GPU class:
main55d64c2+ #87134cd677.Results:
ucrtbase.dll+0x171eb, read at0x400016000,r11=0x40000.0x400016000/ inxg::copy_fromin 10+ runs of 5–25 min, some through the opening cutscene. Summary in #1269.ucrtbasememcpy at other addresses. The one I symbolized is intitle_textures::subresources, a different path.So whether it shows up depends on whether the title gets far enough to call
CopyFromSubresourceon that texture, not on #871 itself. With #871, the title gets further than plainmaindoes here, because plainmainstops at startup on AMD/Wine.AI use: Claude Code (Claude Opus 5.5) wrote this from my runs' logs.
@gustavsi on GitHub · 2026-11-26 02:09 UTC · original
Thanks @ClosetPie107 for the detailed RX 9070 bisect and @St5sz2Jk for confirming that the
0x400016000crash inxg::copy_fromis #477 (fixed by #684) rather than #871!Rebased onto
main(08db8020) + updated #867 (e57cb659, picking up theUnadoptGuardCOM reference pin and alignment guard) at8f08d7cd:GE-Proton11-14(RX 9060 XT):gpu::uma::12/0,title_textures::19/0,real::62/0, plus a fresh 60 spwsh ./scripts/smoke.ps1run (1278 frames /55 53 45per 2 s,exit: 0x0,0crashes,0device removals; block updated in PR description).AI use: Antigravity (Gemini 4 Neon) rebased onto
main+ updated #867, ran the Proton tests and smoke run, and drafted this comment.@DavidM1911 on GitHub · 2026-11-26 03:00 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
@fromthemoonx on GitHub · 2026-11-24 08:25 UTC · original · edited 2026-11-26 03:20 UTC
Rerun on the new head
8f08d7c(rebased ontomain08db802with #867'se57cb65): still passes on native Windows / NVIDIA, as part of the stack run on #877 (a553a22contains this commit): 1433 passed, 0 failed, 47 ignored there; merged ontomainb49be18(clean) 1439 passed, 0 failed. Same RTX 3060 (driver 610.88), Rust 1.100.0, debug. Not tested: Wine / amdgpu. The reports below are for older heads.Rerun on the new head
b3f2f7c(rebased with #867'sa4c5a82): still passes on native Windows / NVIDIA.cargo test --workspace --no-fail-fast -- --test-threads=4, now with no--skip: 977 passed, 0 failed, 45 ignored. The merged run of the whole stack is on #877: no conflicts with main5796cc4, 1060 passed, 0 failed. Same RTX 3060 (driver 610.88), DXC 1.9.2602.17, debug. Not tested: Wine / amdgpu. The report below is forde6d71c.Native Windows / NVIDIA run, since Not tested lists native Windows.
Tested
de6d71c5e8e2ab708410606e4cf7bb9bfd5b77f7(this PR's commit on top of #867's593b2e2), clean worktree, not merged ontomainstable-x86_64-pc-windows-msvc; DXC 1.9.2602.17 (Windows SDK 10.0.26100.0); debugcargo build --workspace, thencargo test --workspace -- --test-threads=4 --skip a_freed_block_is_decommitted_before_its_address_is_reused: 714 passed, 0 failed, 41 ignored, 1 filtered out (lib 673 / 0 / 21; all 7gpu::uma::testspassed). The skip is #913: on this 12 GB card, that test fills video memory and makes unrelated tests fail withE_OUTOFMEMORY.gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardwareXCL_SAMPLE_*not setNot tested
smoke.ps1run here), and anything under Wine. Since the changes are behindunder_wine(), this only shows the native Windows path is unchanged in the test suite.AI use
@ClosetPie107 on GitHub · 2026-11-26 06:06 UTC · original · edited 2026-11-26 06:17 UTC
Confirmed @St5sz2Jk's diagnosis on latest
main(b49be183) + rebased #871 (8f08d7cd) on the same RX 9070 / RADV / Proton Experimental setup (300 s retail runs, same flags):main b49be183 + #871 8f08d7cd + #684 e56dbc3f: sailed past the76.6 sxg::copy_fromcrash cleanly (exit=0, 0 crashes, 0 device removals), then hit the same sparse copy-back fence cycle @St5sz2Jk noted in #1269 (44sparse: the queue has not reached fence value ... after 5 s (at 42915)warnings starting at81.609 s, 5 s afterWait64BitValueX at 0x42437fae8in sparse window 0).main b49be183 + #871 8f08d7cd + #684 e56dbc3f + #1993 0a755f0c: full 300 s (exit=0), 0 crashes, 0 device removals, 0sparse: the queue has not reached fence valuewarnings,16,384translated draws (48skipped),22,268dispatches (73skipped) +195chained split-compute dispatches,1,620PresentXframes,63,477Opus packets (0 errors),15,140 MiBpeak VRAM /12,543 MiBpeak RSS (swap=0), and no new warnings vsmain.So the
76.6 scrash was indeed #477 (fixed by #684) and the subsequent sparse queue stall is fixed by #1993 (0a755f0c, which now composes cleanly with #871 under Wine viacreate_own_list).Not tested
8f08d7cd.AI use
main, ran the 300 s retail verification under Proton on this machine, and drafted this follow-up.@crastinator on GitHub · 2026-11-24 15:44 UTC · original · reviewed
Tested on RDNA2 under Proton with a patched vkd3d-proton: no new failures. That includes #867's commits, since this PR stacks on them.
Tested (head
45b805c, merged ontomain930e8b4: no conflicts)-Db_ndebug=true, dxil-spirv53aac418from #775), DXVK v3.1.1-209dxgi, DXC 1.9.2609.5, libopus 1.5.2,XCL_REQUIRE_GPU=wave64,mesh(0 SKIPPED)x86_64-pc-windows-msvc(clang-cl / lld-link, xwin SDK 10.0.26100), Rust 1.99.1, debugcargo test -p xcl --lib -- --test-threads=1plus every integration test (--test '*' -- --test-threads=1), compared per test with the same runs onmain930e8b4.mainhere: 8 stable Wine-lane failures (#530 ×2, #676, #890 ×2, e2e,pls_quota#810,predication_e2e#1272). Separately,title_textures::{placed_title_textures_share_vram_and_preserve_pixels, transitions_apply_when_their_list_is_submitted}andvram::d32s8_targets…fail together in 2 of 5mainruns (the #718 family), so I do not count a pass of those as a fix either way.main: 740 / 11 / 41 in the same run, with the 3 #718 flakes failing that time. No test fails here that passes onmain; the 8 failures are the stable set above.gpu::uma::tests7 passed,hle::d3d12x::sparse::tests13 passed and 1 ignored.Not tested
XCL_SAMPLE_*was set, so the tests that read them (about 66) pass without running.AI use
@futurepro62 on GitHub · 2026-11-26 08:48 UTC · original
NVIDIA and AMD full-suite run, to go with the reports above by fromthemoonx, since none of them covers AMD. Tested exact head
8f08d7cd(on its base08db802).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 1420 passed, 0 failed, 45 ignored. SKIPPED (no wave64):a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu,a_per_lane_2d_or_3d_group_runs_on_the_gpu,coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu,cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu,dispatch_chain_native_wave64_builds_whole,gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware,the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.unadopt_guard_restores_native_vtable_and_reapplies_extended_on_drop,concurrent_release_during_unadopt_guard_still_runs_hooked_cleanup,fence_proxy_forwards_signal_unwraps_and_frees_on_final_release.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 1431 passed, 0 failed, 47 ignored. SKIPPED:f16_programs_on_the_gpu(f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipleaves out tests that fail on mainb49be183too, not because of this PR. On NVIDIA:heap_window_out_of_memory_falls_back_to_the_switch_form(#1651), the fourgpu::recomp::lower_dxil::tests::*_programs_on_the_gputests,const_and_null_mask_operands_agree_with_hlsl_on_the_gpuandmask_ff0_and_flbit_agree_with_hlsl_on_the_gpu(follow-up on #1651) fail becauserunner::skip_testturns their skips into failures underXCL_REQUIRE_GPU=mesh, andgpu::dxil::fuzz_testsseeds 70, 545, 1019 and 1507 failCreateComputePipelineStatewithE_OUTOFMEMORYon this card (drivers 616.64 and 621.40). On AMD:fuzz_validate_and_gpu_1fails on seed 540 (res[833]0x7 vs CPU 0x6). The AMD run does not setXCL_REQUIRE_GPU.Not tested
AI use
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.