Repository navigation
Conversation
…izes) main at 2d53a80 does not compile: - d3d12_xs_device.cpp called rt::d3d12::create_console_descriptor_heap, which that file never declares: it is also built without the Vulkan layer (mock and COM tests). Slot 14 now reaches the layer through a registered handler, as slot 133 does (set_placed_at_va_handler); with none registered it makes a plain PC heap. - create_console_descriptor_heap built the heap from outside Device with a const DeviceState and the private identity(). Device makes it itself now. - acphal.cpp: SHAPE_XMA_CONTEXT and SHAPE_PCM_CONTEXT were 60 and 28 bytes against static_asserts of 64 and 32. One more reserved dword each; the named fields keep their offsets. - d3d12_console_descriptor_heap_test did not compile (Ref has no operator->, create_device_proxy and vktest::Device were called with signatures they do not have) and linked d3d12_xs_device.cpp a second time. With the path compiling, d3d12_descriptor_test faulted: a PC caller passes a 16-byte description, the next 16 bytes are its stack, and a non-zero "address" there sent it down the console path. The path now also wants size == NumDescriptors * increment (an assumption about the console call, marked as one), and the test checks that a tail which is not address/size makes a plain heap. The test also read the heap proxy's slot 9 with the PC calling convention and released the device twice. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4bt
This was referenced Nov 24, 2026
Open
3 of 4 tasks
DesertGamer
pushed a commit
to DesertGamer/leonida
that referenced
this pull request
Nov 24, 2026
… numbers Review of this pull request pointed out that the status text was behind issue ProjectLeonida#14 and that the PE loader row claimed more than plain main does. The status paragraph now says that the retail executable is measured only with open pull requests or local stand-ins on top of main, that seven open pull requests take main to the title's frame loop with a black picture, and that the 900 s integration run had every pipeline stubbed and rendered nothing. The PE loader row says plain main ends in CRT startup on the Intel host. The bare numbers left over from the old tracker (ProjectLeonida#146, ProjectLeonida#217, ProjectLeonida#330, ProjectLeonida#664, ProjectLeonida#857, ProjectLeonida#1706, ProjectLeonida#1707, ProjectLeonida#1924, #2947, #3119) are removed, since they are gone or name unrelated items here.
Collaborator
|
Thank you for this fix. The diagnosis was right, and current
The Runtime AI-assisted (Claude Code, Claude Opus 5.5). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):What
maindoes not compile atde4c37383(first seen at2d53a8055), with clang-cl and by the look of the errors with any compiler. This makes it build and keeps the tests that were passing before green.d3d12_xs_device.cpp:no member named 'd3d12' in namespace 'rt'at the call tort::d3d12::create_console_descriptor_heapset_console_descriptor_heap_handler), the way slot 133 does withset_placed_at_va_handler. With none registered it makes a plain PC heap.d3d12_vulkan_device.cpp:no matching constructor for initialization of 'DescriptorHeap'(aconst DeviceState), and'identity' is a private membercreate_console_descriptor_heapbuilt the heap from outsideDevice.Device::make_console_descriptor_heapdoes it now, withstate_andidentity().acphal.cpp:static_assert(sizeof(SHAPE_XMA_CONTEXT) == 64)andsizeof(SHAPE_PCM_CONTEXT) == 32faild3d12_console_descriptor_heap_test.cppdoes not compileRefhad nooperator->, andcreate_device_proxyandvktest::Devicewere called with signatures they do not have. The target also listedshims/d3d12_xs_device.cpp, whichgta6rt_d3d12_comalready holds.One behaviour change, found once the path compiled
d3d12_descriptor_testfaulted on a descriptor write. A PC caller passes a 16-byte description; the 16 bytes after it are its stack, and a non-zero value there was read as the console address. Slot 14 now takes the console path only whensize == NumDescriptors * GetDescriptorHandleIncrementSize(type)as well. That is an assumption about the console call, marked as one in the code: I have not measured it on a retail call. If the title passes another size, the check is what to change; the test now covers "a tail that is not address/size makes a plain heap".Two more things were wrong in the new test and are fixed: it read the heap proxy's slot 9 with the PC calling convention (the proxy returns the handle in RAX), and it released the device twice (
create_device_proxytakes over one reference).Tested
Linux (Nobara 44), clang-cl 22.1.8 + xwin SDK 10.0.26100, Wine 11.21 staging, RTX 5070 Ti (NVIDIA 615.78.08). No game files.
mainto compare with).d3d12_console_descriptor_heap: pass.d3d12_descriptor: pass (faulted with the path enabled and no size check).xs_proxy_mock(6 variants),acphal,queue_proxy,d3d12_set_descriptor_heaps: pass.ctest -j 4under Wine: 272 of 297 pass. The failures are Wine-side ones this machine also had on oldermain(device_proxy,file_system,gameinput_host,d3d12_clear, ...) plus present and DXGI tests that need a display that was asleep during the run; I did not triage each one against this change.python -I scripts/check_no_game_data.pyon the six files: clean.Not run: MSVC, Windows CI.
Not claimed in the coordination issue: commenting is restricted to collaborators at the moment, so I could not post the claim line.
AI-assisted.
🤖 Generated with Claude Code
https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4bt