upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/pe_loader.cpp
diff options
context:
space:
mode:
authorDominik <55330408+Dom-in@users.noreply.github.com>2026-11-22 14:15:03 +0000
committerDominik <55330408+Dom-in@users.noreply.github.com>2026-11-22 15:27:09 +0000
commit28ef59961934a6a6a0e90e7e185ec9bb7471231e (patch)
tree860e8b44a19bd1ab187563386d70baa3f6d9116f /runtime/src/pe_loader.cpp
parent4eb6155d3ac4f9d3fadb0d095c4ce13e76783615 (diff)
Runtime: pick the Vulkan GPU by the harnesses' rank (native over Dozen)
The runtime's standalone device (d3d12_vulkan_device.cpp) still took "the first usable device, replaced by every later discrete GPU". #915 fixed that rule in the test harnesses because Mesa's Dozen (Microsoft vendor 0x1414, "Microsoft Direct3D12 (<gpu>)") reports a discrete GPU, so on a PC with the OpenCL/OpenGL/Vulkan Compatibility Pack the runtime could run on the Vulkan-on-D3D12 wrapper while the tests used the native driver. Even without Dozen, on a two-dGPU PC the runtime took the last GPU and vk_test_device.h the first. - runtime/src/vulkan_device_filter.h: vulkan_device_rank() (native over Microsoft's layers, then discrete > integrated > virtual > CPU), with the device type as an int so the header stays Vulkan-free. - d3d12_vulkan_device.cpp: the first usable device of the highest rank. - vk_device_pick.h: device_rank forwards to it (static_assert on the VkPhysicalDeviceType values). - d3d12_indirect_rt_test, dxgi_swapchain_test, vk_image_fuzz, vk_sampler_test had the old loop and ignored LEONIDA_VK_DEVICE: they now filter and rank like the rest, and an unmatched filter fails instead of skipping. - vulkan_device_filter_test: the rank order; docs/testing.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions