Repository navigation
Conversation
|
ProjectScarlett run on the RX 6700 XT without the preload, as asked on #191. Short version: with this PR's Setup: RX 6700 XT (
What the failing runs have in common
I don't have a stack for the hung thread, only the watchdog's, so I can't say where it is waiting. Since the provider is identical in rows 1 and 2, it is something the title does through XMem between creating that first raster pipeline and its first compute pipeline.
Update, same day: the runs above shared the machine with other GPU tests of mine, so I repeated them with nothing else running (no other Proton guest or compile in any 5 s sample, load below 5), alternating the two trees:
Same crash log and same last provider line. So it is not a load effect: five of five runs with this PR's |
|
Thanks @JeffreyBytes for running that and catching the Moving this PR to Draft while we track down the root cause in |
Implements the
runtime/xmem/half of #191 so RADV can import XMem physical pages directly viaVK_EXT_external_memory_hostwithout hitting libdrm'sAMDGPU_GEM_USERPTR_ANONONLYrejection or falling back to the #200 shadow copy. Pairs with #218 (already onmain) and #253.Part of #191
Summary
MEM_PRIVATE,PAGE_READWRITE):MEM_PRIVATEpages inside placeholder apertures rather than section views (runtime/xmem/src/physical_pages/private_views.rs,runtime/xmem/src/shared_pages.rs).SharedSectionso existing multi-view CPU aliases remain coherent.PrivateArena(VirtualAllocMEM_PRIVATE).runtime/xmem/src/physical_pages/backing.rs):TuxBoxAcquirePhysicalBacking,TuxBoxAcquirePhysicalBackingRuns, andTuxBoxReleasePhysicalBackingasPRIVATEsymbols inruntime/xmem/xmem.def.TuxBoxReleasePhysicalBacking(hold)drops the last reference, keeping importedMEM_PRIVATEhost pages valid across live GPU submissions.runtime/xmem/src/tests/physical_backing.rs):ERROR_NOT_FOUNDon foreign memory, held CPU views surviving unmap/free,PrivateArena+ conflicting-orderBackingRunsplitting +ERROR_MORE_DATA, and lazySharedSectionpromotion on a second CPU view.Verification
Tested on RX 6900 XT (
1002:73bf), Linux (7.3.6-1-cachyos), GE-Proton11-14 (1795427215), RADV:cargo check --locked --target x86_64-pc-windows-msvc --manifest-path runtime/xmem/Cargo.toml: passed (0 warnings)cargo test --locked --target x86_64-pc-windows-msvc --manifest-path runtime/xmem/Cargo.toml -- --test-threads=1: 4/4 passed (physical_pages::backing::tests)python -m unittest tests.test_repository_hygiene: 5/5 passedtools/check_d3d12_regressions.py --case buffer-remap --adapter 1002:73bf:PASS(4.418s,d3d12-buffer-remap PASS pci=1002:73bf words=768/768 identical=1 replacement=1,null_fallback_enabled: false)TuxBox d3d12_xs: game memory is imported through its XMem backingand threepath=importedentries, with zerocopied for the GPUmessages.tuxbox.py check --adapter 1002:73bf: all 10 groups passed:Lanes and fixtures on the GPU: 72/72 passed (170s, includingxmem-pagesandxmem-scatter)D3D12 regression controls: 19/19 passed (85s)Shader translator on the GPU: 40/40 passed (238s)