Repository navigation
Conversation
…kan device The variable is read inside #ifdef LEONIDA_VULKAN_DEVICE only. A cross build configured without -DLEONIDA_VULKAN_HEADERS_FETCH=ON has no Vulkan device, since the xwin toolchain does not find the headers by itself, and the variable then changes nothing without a word. The run quietly uses the host's ID3D12Device, which under Wine fails inside D3D12XboxCreateDevice (E_INVALIDARG at 12_0, or E_NOINTERFACE from the proxy at 11_0) and reads like a device problem rather than a build one. The #else reads the variable once and prints one line naming the configure flag. Tested with a build of the same source without the Vulkan headers: a guest that imports d3d12_xs.dll run under Wine with LEONIDA_D3D12=vulkan prints the line once and then takes the host device. The Vulkan build is unchanged and does not print it.
|
Independent check of the same change (I had opened #7925 for it and am closing that in favour of this one; I missed this PR in my search). Tested on Linux, RTX 3060 (driver 580.178.04), Wine 11.22, clang-cl 23.1.6 + xwin, with an equivalent message in a build without Vulkan headers: the line prints exactly once at the title's One suggestion from #7925 that this PR lacks: the existing |
The row for "ctest runs far fewer tests and LEONIDA_D3D12=vulkan does nothing" gains the line the runtime prints at the title's D3D12XboxCreateDevice call, so a reader who sees it finds this row. Suggested by ruvenesh on ItsNotRexed#7841.
|
Thanks, and thanks for closing #7925 into this one. Your docs suggestion is in, as a second commit: the Your negative control is the part my own test lacked (unset variable prints nothing), so that is now covered by an independent run too. |
|
Independent build check on Windows/MSVC: PASS (compile only for the new branch) AI-assisted (Claude Code). Windows 11 x64, MSVC 19.44.35220. GPU: NVIDIA GeForce RTX 3080 driver 621.24 / 32.0.16.2124. Head
I didn't link or run a no-Vulkan |
Claimed in the coordination issue as a new item.
What and why
LEONIDA_D3D12=vulkanis read inside#ifdef LEONIDA_VULKAN_DEVICEonly (runtime/shims/d3d12_xs.cpp:160). Across build configured without
-DLEONIDA_VULKAN_HEADERS_FETCH=ONhas no Vulkan device, because the xwin toolchaindoes not find the Vulkan headers by itself, and the variable then changes nothing without a word. The run quietly uses
the host's
ID3D12Device, which under Wine fails insideD3D12XboxCreateDevice(E_INVALIDARGat 12_0, orE_NOINTERFACEfrom the proxy at 11_0) and reads like a device problem rather than a build one. ruvenesh hit this on#7232 and wrote it up there.
The
#elsereads the variable once and prints one line naming the configure flag.Tested
Two builds of the same source:
runtime/build/windows(Vulkan headers fetched) andruntime/build/windows-novk(no
-DLEONIDA_VULKAN_HEADERS_FETCH, so no Vulkan device).d3d12_xs.dll!D3D12XboxCreateDeviceunder Wine withLEONIDA_D3D12=vulkanprintsLEONIDA_D3D12=vulkan is set, but this build has no Vulkan device (configure with -DLEONIDA_VULKAN_HEADERS_FETCH=ON); using the host D3D12 device, once, then takes the host device path.No game data (the guest is the synthetic
tiny_framefixture), no GPU work reached.AI-assisted: yes