Repository navigation
Conversation
|
Added a second commit: the tool now also requires |
|
Tested 13e66db on a PC with two GPUs, Windows 11 Pro 10.0.26300, Python 3.12.10: pass.
Together with #1697: a local merge of 0effeca onto this PR has one small conflict in the
So the combined pair handles the iGPU-plus-dGPU case raised on #1697. Whichever PR lands second needs that one-hunk rebase. AI-assisted (Claude Code). |
|
Tested
No game files. |
d83accb to
1ba88e7
Compare
|
Rebased onto
|
|
Tested
Code review: |
There was a problem hiding this comment.
The 39 subgroup tests pass on Windows with Python 3.12 at 1ba88e7b. The filter matches the intent, but the ranking changes which adapter the probe reports relative to the runtime on this base. runtime/shims/d3d12_vulkan_device.cpp:5860 still replaces the choice for every suitable discrete adapter. The Python probe keeps the first equal-rank discrete adapter, which the new first_discrete_wins_a_tie test explicitly expects. If both adapters match an empty or broad filter, make_game.py can still set wave64 options for the wrong GPU. Please retain the current runtime selection rule here, or make the new ranking depend on the runtime change and test the combined result. AI-assisted review.
Hardware retest. Tested 878aa29 on an NVIDIA GeForce RTX 4060 (Vulkan subgroup 32..32), driver 621.24, with an AMD Ryzen 5 5500 and Windows 11 Pro (build 26300.9974). Pass for the live Vulkan probe and targeted Python tests.
- With the filter unset,
RTX 4060, ornViDiA,tools/vk_subgroup_info.pyselected the RTX 4060, reportednative64: false, and exited 0. An unmatched filter returned a JSON error and exited 1. - Python 3.12.16:
tests/test_vk_subgroup_info.pyandtests/test_make_game_wave64.pypassed (68 tests, 65 subtests). Hardware coverage was a single Vulkan GPU. AI-assisted.
|
Tested 1ba88e7 on AMD Radeon(TM) Graphics (Ryzen 9 9950X3D iGPU, RDNA2, subgroup 32..64), driver 26.10.1, and NVIDIA GeForce RTX 5080 (subgroup 32..32), driver 616.92, Windows 11 (26200): pass. Machine with both GPUs installed and the RTX 5080 first in Vulkan's list. Detached worktree at the PR head (base 003e781); a second worktree at 003e781 for the red check.
Not run: the full GPU test suite and the full semantic suite (the PR touches only the tool, its test and docs/testing.md). AI-assisted. |
1ba88e7 to
878aa29
Compare
2dbf004 to
c505b62
Compare
c505b62 to
4c27573
Compare
|
@lucastayaralvarenga-ui thanks, you're right: on its own the ranking made the probe disagree with the runtime. I've removed it. The branch (4c27573) is now only the |
|
Tested 35 passed. Independent Windows 11 verification, Python 3.15.2. AI-assisted. |
4c27573 to
4947579
Compare
Follow-up to @AwkGrep256's finding on #1548. The
LEONIDA_VK_DEVICEfilter landed separately (#1755, TEST-258); this PR is what was still missing. One commit onmain:bufferDeviceAddress.d3d12_vulkan_device.cppskips a device without it, and the tool didn't check it (VkPhysicalDeviceVulkan12Featuresindex 38), so it could answer for a GPU the runtime passes over.FakeDevicegetsbuffer_device_address, and the rejection test gets ano_buffer_device_addresscase.main,LEONIDA_VK_DEVICE=radeon python -m pytest tests/test_vk_subgroup_info.pygives 45 failed:QueryTest/MainCliTestexpect the unfiltered pick but read the caller's variable, and docs/testing.md suggests setting it on a multi-GPU PC.setUpnow clears it undermock.patch.dict; the filter tests still set it themselves.The device ranking (native driver over Dozen, first-of-highest-rank) that an earlier revision had is removed, per @lucastayaralvarenga-ui's review: the probe must keep the runtime's rule ("last discrete wins") until the runtime changes with it. That change is #1799, and the tool can follow it once #1799 merges.
Disclosure: written with an AI assistant (Claude Code). I reviewed it and ran the commands above.
🤖 Generated with Claude Code