tools: run translator GPU checks on the requested adapter #194
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/194"
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?
Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-25T19:52:12Z.
check_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