Linux/AMD: without RADV_EXPERIMENTAL=transfer_queue, vkd3d puts the copy queue on the compute family (house street 39-43 ms -> 20.5 ms on RX 7900 XTX) #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/gamingwithhomie--larp#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?
@samos667 on GitHub · 2026-12-06 01:33 UTC · original
On RADV, vkd3d-proton puts D3D12 copy queues on the compute queue family unless
RADV_EXPERIMENTAL=transfer_queueis set. Its own startup log shows it (with a one-line logging patch of ours):copy queues on family 1(compute) without it,copy queues on family 3(transfer) with it.With the copy queue on the compute family, larp's copies on that queue (the heap feed and the other final copies
queues.rssends there) run as ~3 ms jobs on the compute rings, about 8 a frame, and the graphics queue waits for them, through a timeline wait or through vkd3d's submitting thread blocked in a submission. With the variable set, the same copies are ~0.25 ms jobs on the SDMA engines, running beside graphics.Measured on an RX 7900 XTX (RDNA 3), Mesa/RADV 26.2.5, vkd3d-proton 3.2 (71cae091), GE-Proton,
linux-test0436029unmodified,LARP_UPSCALER=off, 3840x2160 output, driving on the street by the house, traced with the kernel's amdgpu scheduler events (20 s per capture, frames from MangoHud's presents, checked against larp's own fps log):transfer_queue(2 captures)transfer_queue(2 captures)With it the card is busy ~97 % of the frame; without it, the spikes in frame time follow the copies.
linux/run.shsets noRADV_*variable. Suggestion: exportRADV_EXPERIMENTAL=transfer_queueby default when the device is AMD (tested here on RDNA 3 only), or mention it indocs/linux.md.@vanya890 on GitHub · 2026-12-06 01:35 UTC · original
The measurements are unusually useful because they separate graphics-queue busy time from idle time waiting on copies, rather than relying on FPS alone. I would keep the proposed change opt-in for now, not set it automatically for every AMD device: the report verifies RDNA 3 on one Mesa/RADV + vkd3d-proton combination, while
RADV_EXPERIMENTALis a Mesa driver opt-in and its behavior/availability can vary by Mesa version and GPU generation.A safe first step is documenting the per-launch override (
RADV_EXPERIMENTAL=transfer_queuefor the Larp process) with the tested Mesa/RADV and vkd3d-proton versions, plus a note that RDNA 2/4 and other Mesa versions are unverified. If a later matrix confirms the same queue-family selection and no regressions across those combinations, the launcher could consider a narrowly gated default. Please also include the exact launch command used for the captures so others can reproduce the comparison without exporting the variable system-wide.@vanya890 on GitHub · 2026-12-06 01:46 UTC · original
I opened PR #517 with the opt-in Linux/Proton documentation. It records the RX 7900 XTX / RDNA 3, Mesa 26.2.5 and vkd3d-proton 3.2 test context, includes the reported frame-time comparison with an explicit single-system caveat, and does not change launcher defaults. The repo does not track the packaged Linux launcher scripts, so the instructions use the per-command environment prefix rather than guessing a script path. The exact launcher command from the captures would still help others reproduce the result.