RDNA1 (RX 5700 XT, 8 GB) + DirectMesh: mesh shaders work and the world draws, then the title null-writes at +0x23cf683 when a 16 GB host runs out #498
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem#498
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@bogislaus on GitHub · 2026-12-04 19:13 UTC · original
Hardware and software
7.3.7-2-cachyos, cmdline:amdgpu.gttsize=9216 ttm.pages_limit=2359296 amdgpu.sched_hw_submission=8main@0fd7614b(2026-12-04), built with./build.shUSE_SYSTEM_WINE=1) — Proton-CachyOS never reaches the adapter on thisbox (it self-deadlocks in
win32uatloaderdrv_SetDesktopWindow → get_vulkan_gpus → pthread_once)lonewolf0622/bc250meshtaskwork, Mesa 26.2.1) with xmem'spatches/mesa.patchported onto it, installed as a private ICD and selected with
VK_DRIVER_FILES=…/radeon_icd.x86_64.jsonplus
RADV_DIRECTMESH=1Local source patches in the tree (disclosed because they change behaviour)
crates/victory-gpu/src/um.rs:CARD_KEPT_FOR_HOST = 3 << 30(stock 12 GiB gives an 8 GB card 1024 MB, issue #119)crates/victory-gpu/src/resource.rs:percent_fromclamp(50, 97)→(50, 200)run.conf
What works
Mesh shaders are real on this card with the DirectMesh driver. With the config above:
drawsequalsdrawnon every line — the geometry the stock RDNA1 path refuses(
no host pipeline: the host GPU has no mesh shaders, 41,406 of 99,236 refused) is drawn in full.Before/after on the same save and profile: heads and hair only → prologue interior with bodies, beds,
props and textures.
Warm pass on this driver: 95,082 pipelines in 1,014 s (8 jobs),
99205 of 99205 native pipelines on disk, 0 refused, 13 GB cache.What fails
1. The DirectMesh index-storage budget is 128 MiB on this board. During the prologue:
bc250_idx_storage_limit()gives 128 MiB of VRAM unlessCHIP_GFX1013(then GTT/8).RADV_BC250_IDX_STORAGE_MB=512removes this failure and roughly doubles the time before the next one.2. After that, the host runs out of RAM and the title dies on a null write.
Measured with
mem_info_gtt_used/mem_info_vram_usedsampled every 2 s:then:
That address is 0x679 bytes past
+0x23cf00a, the frame-1 family address; it looks like a write through anallocation that returned null. With
amdgpu.gttsize=11264the same scene instead ends in a kernel OOM kill(
um-play-*.scope: The kernel OOM killer killed some processes in this unit, 4.5 GB memory peak + 6 GB swap,GTT 11,263/11,264).
Best result across ~10 configurations: frame 3,931 at 1280x720 with a warm cache.
Questions
with the card/aperture? GTA VI's prologue exceeds it on a 24 GC/s card.
process peaked at 4.5 GB RSS + 6 GB swap while recording ~450 first-use mesh pipelines; a same-spec
reference running RDNA3 (native mesh) shows ~3.2 GB private and survives with 1 GB spare.
Reproduction
VK_DRIVER_FILES+RADV_DIRECTMESH=1.USE_SYSTEM_WINE=1,CONSOLE=series-s,VICTORY_OUTPUT=1280x720,VICTORY_PRESET=potato,VICTORY_WARM=0,VICTORY_PAGES=0,RADV_BC250_IDX_STORAGE_MB=256../run.sh warm(≈17 min), then./run.sh play, continue the save into the prologue.hwmon/mem_info_*andlocal/run/*.log; the failure is deterministic at the prologue scene load.@kromka45 on GitHub · 2026-12-04 20:00 UTC · original
@goldfishdev is there any contact to you ? via any app?
@goldfishdev on GitHub · 2026-12-04 20:08 UTC · original
The 128 MiB index budget is DirectMesh's, not xmem's. File it with bc250_idx_storage_limit there. The null write looks like the title failing an allocation on a 16 GB host; the upstream part is CARD_KEPT_FOR_HOST = 12 GiB (#119), and the RDNA1 mesh path is #370. Please keep support in the tracker.
@bogislaus on GitHub · 2026-12-05 07:55 UTC · original
Thanks, that clears it up. I'll take the 128 MiB index-storage budget to the DirectMesh repo, the null write is the 16 GB allocation wall and matches #119, and the mesh path itself is #370, I posted the numbers from this card there. Closing this one.