tools: run translator GPU checks on the requested adapter #194

Manually merged
github merged 1 commit from gh-pr/194/head into gh-pr/194/base 2026-11-26 06:37:36 +00:00
Owner

@⁠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 UTC

check_translator_gpu.py takes --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:13c0 still ran on the NVIDIA card, and every check then failed its adapter comparison.

The tool now looks up the adapter's Vulkan deviceName in vulkaninfo --summary and sets VKD3D_FILTER_DEVICE_NAME and DXVK_FILTER_DEVICE_NAME before running the guests. Several tools/check_*.py already set these two variables, but to a fixed AMD or NVIDIA. If vulkaninfo doesn'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:

Without the change With the change
--adapter 1002:13c0 (RADV) both FAIL: the guests ran on 10de:2b85 adapter 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). At 1b32189, without the change, python tuxbox.py check on 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

**@⁠NickStallman** on GitHub · 2026-11-25 19:52 UTC · [original](https://github.com/brcly/TuxBox/pull/194) `NickStallman:fix/translator-checks-adapter` → `main` · +40 −1 · 2 files · 1 commits · merged 2026-11-25 23:23 UTC `check_translator_gpu.py` takes `--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:13c0` still ran on the NVIDIA card, and every check then failed its adapter comparison. The tool now looks up the adapter's Vulkan `deviceName` in `vulkaninfo --summary` and sets `VKD3D_FILTER_DEVICE_NAME` and `DXVK_FILTER_DEVICE_NAME` before running the guests. Several `tools/check_*.py` already set these two variables, but to a fixed `AMD` or `NVIDIA`. If `vulkaninfo` doesn'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`: | | Without the change | With the change | |---|---|---| | `--adapter 1002:13c0` (RADV) | both FAIL: the guests ran on `10de:2b85` | `adapter 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). At 1b32189, without the change, `python tuxbox.py check` on 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](https://claude.com/claude-code)
The guests create their device on the default adapter, so --adapter only
checked the result. Look up the adapter's Vulkan device name with
vulkaninfo and pass it to vkd3d-proton and DXVK as a device filter.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:37:34 +00:00
github manually merged commit 7602f1a4c8 into gh-pr/194/base 2026-11-26 06:37:36 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.