mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:40:52 +01:00
[PR #260] d3d12_xs: the first call of a forwarded device slot names its caller (RT-526) #310
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#310
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/260
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/9990📝 Commits (2)
1d1a274d3d12_xs: the first call of a forwarded device slot names its caller (RT-526)0ff37d4d3d12_xs: slot caller via a formatter hook, cleared on reset (review of #9990)📊 Changes
4 files changed (+54 additions, -3 deletions)
View changed files
📝
runtime/shims/d3d12_xs_device.cpp(+33 -3)📝
runtime/shims/d3d12_xs_device.h(+11 -0)📝
runtime/src/main.cpp(+2 -0)📝
runtime/test/xs_proxy_mock_test.cpp(+8 -0)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):RT-526 asked for two retail-boot diagnostics. One is already on main: stepping over the title's asserts is
LEONIDA_SKIP_INT3(runtime/shims/startup_trace.h, docs/boot.md). This PR adds the other one.What: the first call of every Xbox device slot the proxy forwards by number (the generic branch of
proxy_slot) now logs the title code that made it, as module+offset:device_slot_first_caller(slot)returns the same text ("" before a call). The caller is_ReturnAddress()ofproxy_slot, the vtable entry the title calls, andrt::shims::module_offsetnames it. Slots with a handler of their own log as before. Until now, finding a new Xbox-only slot in the executable needed a debugger.Tested:
#9809/#9815fix that. I built with those three fixes applied locally and didn't commit them.LEONIDA_D3D12=vulkan, on top of#7503so the boot reaches the device slots (main stops earlier, at DStorageGetFactory). 9 slots logged a caller, every one inside the title's executable. Slot 25's caller is the same title frame as the first title frame of the access violation that follows it, so the offsets are right. No offsets are posted here, per the project's rule.xs_proxy_mock_testanddevice_proxy_testdon't build on main today. Both miss the Vulkan include path forgfx10_descriptors.h, and the mock test also missescreate_console_descriptor_heap. That's a separate fix.Counts only, no game data. AI-assisted.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.