mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:40:52 +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#134
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/82
Author: @Andretuta
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:old-pr/9809📝 Commits (2)
8403c4cacphal: SHAPE_XMA_CONTEXT and SHAPE_PCM_CONTEXT are the 64 and 32 bytes their checks namea5165cbd3d12: slot 14's console descriptor heap compiles, through a handler the layer registers on request📊 Changes
6 files changed (+91 additions, -18 deletions)
View changed files
📝
docs/boot.md(+4 -0)📝
runtime/shims/acphal.cpp(+6 -2)📝
runtime/shims/d3d12_vulkan_device.cpp(+26 -8)📝
runtime/shims/d3d12_xs_device.cpp(+13 -4)📝
runtime/shims/d3d12_xs_device.h(+11 -0)📝
runtime/test/d3d12_console_descriptor_heap_test.cpp(+31 -4)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Claimed in the coordination issue as: not claimed. GitHub refused my comment on
#9677("You can't perform that action at this time"). New item, not in the tables; I found no open PR for either break.Depends on: none. It follows up
#9577and#9515, both merged.What and why
maindoes not compile with MSVC since the merge round that brought#9577and#9515(checked atf48adad76; the same lines are on2d53a8055). One commit per cause.1.
runtime/shims/acphal.cpp(#9515)The bit-fields of
SHAPE_XMA_CONTEXTfill five 32-bit words and those ofSHAPE_PCM_CONTEXTsix, so withreserved[10]andreserved[1]the structures were 60 and 28 bytes. The shim uses only their size (the stride of the context arrays it allocates), so the reserved tails now cover the rest. The field offsets are not checked against a console; the author of#9515may know whether a field is missing instead.2. Device slot 14's console descriptor heap (
#9577)rt::d3d12::create_console_descriptor_heapby name.d3d12_xs_device.cppdoes not included3d12_com.h, and it is built into programs without the Vulkan layer, where the name would not link either. Slot 14 now asks a handler, as slot 133 does (set_placed_at_va_handler). The heap is made by aDevicemember, which has the state and identity the free function could not reach.d3d12_descriptor,d3d12_present,d3d12_draw,xbox_present,d3d12_f16_halvesand others). The proxy takes the 16 bytes after the description as address and size whenever the first is not zero; a caller that passes the 16-byte PC description has unrelated bytes there, and the heap writes its descriptors to that address. So the layer registers the handler only withLEONIDA_CONSOLE_DESCRIPTOR_HEAP=1(documented indocs/boot.md), which a retail boot would set for stop 13 ofdocs/retail_boot_chain.md; without it slot 14 creates the heap from the 16 PC bytes, as before#9577. If you would rather have it on by default with a rule that tells the two descriptions apart, or revert#9577, say so and I will change this.Refgetsoperator->,create_device_proxyits three arguments and a device reference of its own, and the heap proxy's start is read from the heap behind it (slots 9 and 10 of a heap proxy return the handle in RAX, so a PC call reads a result buffer the proxy never writes). It now checks slot 14 with and without the handler.Tested
NVIDIA GeForce RTX 3080 Ti, driver 617.42, Windows 11 (26300), no Resizable BAR; MSVC 14.51 (VS Build Tools 2026), Vulkan SDK 1.4.363; at
f48adad76.scripts\build_runtime.ps1: all 748 targets build. Before: it stops at the errors above.ctest: 290 of 294 pass, among themd3d12_console_descriptor_heap,acphal,device_proxy,xs_proxy_mock*andqueue_proxy. The four failures do not go through this code:d3d12_com(line 345, aClose()result),d3d12_vulkan_device,d3d12_depth_resolve,d3d12_indirect_rt.python -I tests/test_acphal_abi.py: OK.python -I tests/test_docs_env_vars.pyreports onlyLEONIDA_RNG_SEED(bcrypt_rng.cpp:80), which is not from this change.mainmine stops earlier, atDStorageGetFactory).AI-assisted: yes (Claude Code, Claude Fable 5.2).
Checklist
docs/design.md, with how it was confirmed. (No translator rule here.)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.