tools: select the translator checks' adapter by device UUID #222
No reviewers
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/brcly--TuxBox!222
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-222"
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?
@JeffreyBytes on GitHub · 2026-11-26 11:03 UTC · original
JeffreyBytes:fix/translator-check-adapter-name→main· +51 −10 · 2 files · 2 commits · draftSummary
Fixes #219.
Testers wanted. I have one machine, and this problem depends on the hardware and driver. Before this is marked ready I need runs on other setups: machines with more than one GPU above all, then NVIDIA, Intel, and RADV on other Mesa versions. See "How to test" below.
select_adapter()intools/check_translator_gpu.pypins the translator GPU checks to one adapter by settingDXVK_FILTER_DEVICE_NAMEandVKD3D_FILTER_DEVICE_NAMEto the namevulkaninfo --summaryprints on the host. A Proton guest can see the same device under a different name, so the filter matches nothing, DXVK logsSkipping: Device filter, and every case in "Shader translator on the GPU" fails withdevice failed: 0x80004005.The first version of this PR removed RADV's trailing tag from the name. Testing by @DrArroway showed that is not enough: on that host
AMD Radeon RX 6900 XT (RADV NAVI21)isRadeon RX 6800/6800 XT / 6900 XTin the guest. The guest's name can't be derived from the host's.This now filters by device UUID.
vulkaninfo --summaryprintsdeviceUUID, and DXVK acceptsDXVK_FILTER_DEVICE_UUID. No name filter is set when a UUID is available; vkd3d-proton only has a name filter, and the guests create their device on DXVK's default adapter, which is then the only one DXVK exposes. Without a UUID in the summary it falls back to the name as before.Still to confirm on a machine with two GPUs: that each
--adapterruns on the device asked for.How to test
On this branch:
or only the affected stage, which takes about ten minutes:
Please report the GPU, driver version and Proton build, whether the stage passed, and these two lines, which show whether your host and guest names differ:
A run where the stage already passed on
mainis just as useful, to show nothing regressed.Verified on Lanes
python tuxbox.py checkpassed on this branch — passed in full on the first version; on the current commit only the affected stage has been rerun (30 of 30)This changes a check tool only.
tests/test_translator_checks.pycovers the UUID filter with two AMD devices and the fallback to the name.GPU, driver and backend: AMD Radeon RX 6700 XT (
1002:73df), Mesa RADV 26.3.1, Linux 7.3.6, Proton backend with GE-Proton11-14, single GPU."Shader translator on the GPU", run on its own on this card:
Checks
python -m unittest tests.test_translator_checkspasses. No evidence JSON changes.@DrArroway on GitHub · 2026-11-26 11:51 UTC · original
Tested
#222(84b9d9c) on a dual-GPU AMD RADV host (radv 26.3.1,GE-Proton11-14, Windows DXCv1.9.2609, Linux DXC1.9.2609):python -m unittest tests.test_translator_checks:5/5 OK--adapter 1002:73bf(RX 6900 XT): still fails0 of 30(Skipping: Device filter->device failed: 0x80004005)--adapter 1002:164e --only alu(Ryzen 9 7900X iGPU): still fails (Skipping: Device filter->device failed: 0x80004005)Requested adapter names on this host:
vulkaninfo --summary | grep deviceNamegrep -h "Found device" .../gpu.log | sort -uStripping the trailing
(...)gives"AMD Radeon RX 6900 XT"and"AMD Ryzen 9 7900X 12-Core Processor", neither of which is a substring of DXVK's guest device names above, soDXVK_FILTER_DEVICE_NAMEskips both adapters.@ReverendOzmund on GitHub · 2026-11-26 11:53 UTC · original
Small edge case: with the tag removed, the substring filter gets looser. "AMD Radeon RX 7900 XT" now also matches "AMD Radeon RX 7900 XTX" (the tagged names didn't match each other), so a host with both cards could pick either. Probably rare enough to ignore, but an exact match against the guest's adapter name would avoid it. NVIDIA names have no tag, so nothing changes there.
tools: filter the translator checks' adapter by its name without the driver tagto tools: select the translator checks' adapter by device UUID@JeffreyBytes on GitHub · 2026-11-26 12:32 UTC · original
Thanks both, that settles it: the guest's name can't be derived from the host's, so no name filter will work.
Radeon RX 6800/6800 XT / 6900 XTandAMD Radeon(TM) Graphicsshare nothing useful with whatvulkaninfoprints, and it only worked on my card because the two names happen to overlap.I've pushed a different approach: filter by the device UUID instead of the name.
vulkaninfo --summaryprintsdeviceUUIDfor each device, and DXVK acceptsDXVK_FILTER_DEVICE_UUID(32 hex digits, compared indxvk_device_filter.cpp). The UUID does not depend on how the guest names the device, and it also tells apart two cards of the same model and the 7900 XT / 7900 XTX case @ReverendOzmund raised.On the RX 6700 XT: the stage passes 30 of 30 with the right UUID, and with a wrong UUID every guest logs
Skipping: UUID filter, so the filter is doing the selecting.@DrArroway, could you run it again on the dual-GPU host, once per adapter? That is the case I can't test: whether vkd3d-proton follows DXVK's adapter when two devices are present. The
Found device/Skippinglines fromgpu.logfor each run would show it.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.