Repository navigation
Conversation
…ld does not have The variable is only read inside #ifdef LEONIDA_VULKAN_DEVICE, and a cross build configured without -DLEONIDA_VULKAN_HEADERS_FETCH=ON has no Vulkan device (the xwin toolchain does not find the Vulkan headers by itself). LEONIDA_D3D12=vulkan then changes nothing and the run quietly uses the host's D3D12 device, which under Wine fails at D3D12XboxCreateDevice with E_INVALIDARG (12_0) or E_NOINTERFACE (11_0) and reads as a device problem rather than a build one (reported by ruvenesh on ItsNotRexed#7232, found by kett1m on the coordination board). The #else reads the variable once and prints one line naming the configure flag; docs/testing.md's cross-build section says the same. The #else branch is compile-checked with cl /c without the define.
|
Verified the no-Vulkan build on native Windows x64 at One small mismatch with the commit's “warn once”: I added a second successful AI-assisted (OpenAI Codex). |
cdomergue's ItsNotRexed#8281 check counted two fallback warnings when a fixture made a second successful D3D12XboxCreateDevice in the same process. Gate the line behind an atomic flag following the proxy_logged pattern above, set only after the backend name matches.
|
Fixed in Syntax-checked the |
|
Tested
Restored the original sources. Stock |
|
Tested For this change. The PR adds no test. Setup. Built with MSVC 14.52 (Visual Studio 18), Windows SDK 10.0.26100, Vulkan SDK 1.4.363.1, Ninja RelWithDebInfo on Windows Server 2025 (no Vulkan driver there), then the same binaries run through
Against No game files used. AI-assisted (Claude Code). |
|
Code read at
One limitation, not a defect: because the branch is |
|
Tested 46eec62 on Windows 11 Pro 10.0.26300, MSVC 14.51 (VS Build Tools 2026), Windows SDK 10.0.26100, NVIDIA GeForce RTX 4060 / 621.24, Khronos Vulkan headers via Merged onto main 6312c05 (clean), full runtime build, This build has the Vulkan device ( AI-assisted (Claude Code). No game files. |
What and why
kett1m's finding on the coordination board (comment, claimed there):
LEONIDA_D3D12=vulkanis only read inside#ifdef LEONIDA_VULKAN_DEVICE(runtime/shims/d3d12_xs.cpp), and a cross build configured without-DLEONIDA_VULKAN_HEADERS_FETCH=ONhas no Vulkan device. The variable then changes nothing, the run quietly uses the host's D3D12 device, and under Wine that fails atD3D12XboxCreateDevicewithE_INVALIDARG(12_0) orE_NOINTERFACE(11_0) — a build configuration mistake that reads as a device failure. ruvenesh lost time to exactly this on #7232; I hit the same silence on a Windows run the same day (the env var changed nothing and the D3D12 trace looked like a device stop).The change
#elsebranch readsLEONIDA_D3D12once and prints one line naming the configure flag:[rt] d3d12_xs: LEONIDA_D3D12=vulkan ignored: this build has no Vulkan device. Reconfigure with -DLEONIDA_VULKAN_HEADERS_FETCH=ON (see docs/testing.md).docs/testing.md, the cross-build section: one paragraph saying the same, so the runbook reader meets the explanation before the failure.Checks
#elsebranch is compile-checked withcl /c /W4 /permissive- /utf-8withoutLEONIDA_VULKAN_DEVICE— clean.Notes
fprintfbehind an#ifdefflip that no test target exercises (the test builds all define the macro); a test would need a second configuration of the same target. Saying so plainly rather than shipping a fixture for it.agent: yes