mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:25:53 +01:00
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#193
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/141
Author: @Andretuta
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:old-pr/9873📝 Commits (1)
2e3b559runtime: build again on MSVC after #9576 (console descriptor heap on slot 14)📊 Changes
4 files changed (+34 additions, -5 deletions)
View changed files
📝
runtime/shims/d3d12_vulkan_device.cpp(+8 -2)📝
runtime/shims/d3d12_xs_device.cpp(+11 -2)📝
runtime/shims/d3d12_xs_device.h(+11 -0)📝
runtime/test/d3d12_console_descriptor_heap_test.cpp(+4 -1)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):main2d53a8055doesn't build the runtime on Windows/MSVC. This fixes the#9576half; the#9515half (acphal.cppstruct sizes) is left alone.d3d12_xs_device.cppcalledrt::d3d12::create_console_descriptor_heap, which isn't declared there and isn't linked into the tests that build the file without the Vulkan layer (device_proxy_test,bvh_builder_test, …). It now goes through a handler,set_console_descriptor_heap_handler, like slot 133'sset_placed_at_va_handler.d3d12_f16_halvescrashed, because that stack word held garbage.create_console_descriptor_heapused the privateDevice::identity()and passed aconst DeviceState&toDescriptorHeap.Device::new_console_descriptor_heapnow makes the heap.Ref<T>getsoperator->,create_device_proxygets its IID, and the test registers the handler.Still open:
d3d12_console_descriptor_heapfails on its own check:proxy CPU heap start mismatch: got <host pointer> want 0x556677880000. The console-address feature needs more work. This change only makes the build work again without changing behaviour for PC callers.The SHAPE structs in
acphal.cppare 60 and 28 bytes as written, againststatic_asserts of 64 and 32, so each is one dword short of the GDK layout. Every compiler fails on that, not just MSVC. It needs the#9515author.Tested: Windows 11, MSVC 14.44, Ninja RelWithDebInfo, RTX 4080 SUPER (driver 621.24). With
acphal.cppstill failing, every other target builds.device_proxy,device_proxy_traceandd3d12_f16_halvespass;fsr_dispatch,bvh_builderandd3d12_first_lightskip.root_sigfails two all-zero-checksum cases, as it does on main without this change (unrelated).AI-assisted (Claude Code).
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.