tools: run translator GPU checks on the requested adapter #194
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!194
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/194/head"
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?
@NickStallman on GitHub · 2026-11-25 19:52 UTC · original
NickStallman:fix/translator-checks-adapter→main· +40 −1 · 2 files · 1 commits · merged 2026-11-25 23:23 UTCcheck_translator_gpu.pytakes--adapter, but its guests create the D3D12 device on the default adapter. On a machine with an RTX 5090 (10de:2b85) and a RADV iGPU (1002:13c0),--adapter 1002:13c0still ran on the NVIDIA card, and every check then failed its adapter comparison.The tool now looks up the adapter's Vulkan
deviceNameinvulkaninfo --summaryand setsVKD3D_FILTER_DEVICE_NAMEandDXVK_FILTER_DEVICE_NAMEbefore running the guests. Severaltools/check_*.pyalready set these two variables, but to a fixedAMDorNVIDIA. Ifvulkaninfodoesn't list the adapter, the tool keeps the default device, and each check still rejects a result from the wrong adapter. A unit test covers the lookup.Results with
--only alu --only swizzle:--adapter 1002:13c0(RADV)10de:2b85adapter 1002:13c0: AMD Ryzen 9 9950X 16-Core Processor (RADV RAPHAEL_MENDOCINO); alu PASS (144 instructions, 0 wrong); swizzle PASS (104 cases)All 28 checks pass on
--adapter 10de:2b85(RTX 5090, NVIDIA 595.99.02, Proton Experimental experimental-11.0-20261112). At1b32189, without the change,python tuxbox.py checkon the 5090 passes every group: Lanes and fixtures 67/67, D3D12 regression controls 17/17 and shader translator 28/28. With the change, the unit tests pass.🤖 Generated with Claude Code