mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:10:53 +01:00
[PR #2173] d3d12_xs: say so when LEONIDA_D3D12=vulkan is asked of a runtime built without the Vulkan device (RT-VULKAN-REQUESTED-NOT-BUILT) #2177
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2177
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2173
Author: @quartz-heron-58
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:vulkan-requested-note📝 Commits (1)
ad6045bd3d12_xs: say so when LEONIDA_D3D12=vulkan is asked of a runtime built without the Vulkan device (RT-VULKAN-REQUESTED-NOT-BUILT)📊 Changes
5 files changed (+88 additions, -4 deletions)
View changed files
📝
docs/boot.md(+2 -2)📝
runtime/CMakeLists.txt(+7 -0)➕
runtime/shims/d3d12_backend.h(+23 -0)📝
runtime/shims/d3d12_xs.cpp(+15 -2)➕
runtime/test/d3d12_backend_test.cpp(+41 -0)📄 Description
Claimed as: RT-VULKAN-REQUESTED-NOT-BUILT (#1608)
Depends on: nothing.
What and why
A
gta6rtconfigured without Vulkan headers is built withoutLEONIDA_VULKAN_DEVICE.D3D12XboxCreateDevicethen ignoredLEONIDA_D3D12=vulkanwithout a word and wrapped the host's D3D12 device. The run stops somewhere else and reads like a boot result (a finding on #1608 today traced a reported stop to exactly this).docs/boot.mdmentions it, but the log did not.Now that case prints one line, once:
[rt] d3d12_xs: LEONIDA_D3D12=vulkan is set, but this runtime was built without the Vulkan-backed device (its configure found no Vulkan headers), so the title gets the host's D3D12 device instead. Configure again with VULKAN_SDK set or -DLEONIDA_VULKAN_HEADERS_FETCH=ON; -DLEONIDA_REQUIRE_VULKAN=ON makes a configure without the headers failWhich device is created does not change in either build. The reading of the variable moves to a small header,
runtime/shims/d3d12_backend.h, that both builds use, with a CPU-only testd3d12_backendregistered outside the Vulkan-headers block ofruntime/CMakeLists.txtso a header-less configure builds it too. One sentence indocs/boot.mdupdated. It does not touch the proxy message that #1168 changes.Tested
Windows 11 26300, MSVC (VS 2022 Build Tools), main
ad41fd5plus this commit,scripts\build_runtime.ps1 -FetchSdl3with VULKAN_SDK 1.4.363.0: build exit 0.d3d12_backend_test: 14 checks, 0 failures.ctest -R "d3d12_backend|tiny|d3d12_xs": 22 of 22 pass (includesrun_tiny_frame, which goes through the Vulkan branch of the changed function).python -I tests/test_ci_registration.py: 16 OK.python -I scripts/check_no_game_data.pyon the 5 changed files: exit 0.git diff --check: clean.Not verified: the line actually printing from a header-less
gta6rt. A configure of main without Vulkan headers fails here before generating (title_hud_testlinksVulkan::Headersunconditionally, which the open #2083 fixes), so that build could not be made. The#elseside is covered by the helper's test and by reading the code only. Not built on Linux or with clang-cl.GPUs tested: NVIDIA GeForce RTX 4080, driver 621.24, Windows 11 (only for the Vulkan-build ctest runs above).
AI-assisted: yes (Claude Code; built and run on the machine above).
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed: n/a (runtime shim, no translator change).🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.