mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:40:52 +01:00
[PR #243] [CLOSED] runtime: fix the three compile breaks that stop main from building #295
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#295
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/243
Author: @Andretuta
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:old-pr/9978📝 Commits (3)
88ed23ffix: make main build again (3 hunks, 3 root causes)c1e1c50runtime: give the standalone proxy tests an inert create_console_descriptor_heap so they link7b31674runtime: give the remaining standalone d3d12_xs_device.cpp consumers the stub too📊 Changes
5 files changed (+43 additions, -3 deletions)
View changed files
📝
runtime/CMakeLists.txt(+7 -0)📝
runtime/shims/acphal.cpp(+2 -2)➕
runtime/shims/d3d12_console_heap_stub.cpp(+22 -0)📝
runtime/shims/d3d12_vulkan_device.cpp(+2 -1)📝
runtime/shims/d3d12_xs_device.cpp(+10 -0)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):main(d083a2cc3) does not compile the runtime (gta6rt). Three independent source-level breaks from recent merges, each fixed with one hunk. With them the target links; without them it fails withC2084,C2338,C3083,C2248,C2665.1.
runtime/shims/d3d12_xs_device.cpp— missing declaration.Xbox slot 14's console descriptor-heap path (
3630610ca) callsrt::d3d12::create_console_descriptor_heap(declared ind3d12_com.h:221, defined ind3d12_vulkan_device.cpp) but this translation unit never sees the declaration. Fixed with a forward declaration, not#include "d3d12_com.h": that header pulls ingfx10_descriptors.handvulkan_backend.h, and this TU is also compiled byroot_sig_test,device_proxy_testandxs_proxy_mock_test, which do not carry the Vulkan include path — including the header breaks those three tests instead (verified: adding the include reintroduces avulkan/vulkan.hC1083 in those targets).2.
runtime/shims/d3d12_vulkan_device.cpp— the same commit's helper.create_console_descriptor_heapneeds a non-constDeviceState&(Device::state()returns a const reference) and the privateDevice::identity(). Added a non-conststate()overload and used the existing publicholder()(which returnsidentity()). Behaviour-neutral.3.
runtime/shims/acphal.cpp— SHAPE context sizes (ccd36246f).sizeof(SHAPE_XMA_CONTEXT)is 60 against the asserted 64, andsizeof(SHAPE_PCM_CONTEXT)is 28 against 32. The repo's own ABI test (tests/test_acphal_abi.py) asserts 64/32 are the GDK sizes, so the structs are one trailing dword short:reserved[10] -> reserved[11],reserved[1] -> reserved[2]. Padding only; no named field moves. (The shim never reads a field of either context — it only allocatessizeof(...)zeroed arrays — so only the size matters to it. Where the true GDK puts the byte is still the author's to confirm.)Verified:
cmake --build runtime/build --config RelWithDebInfo --target gta6rtlinks ond083a2cc3with these hunks.Not fixed here (separate, and its author's to rewrite):
runtime/test/d3d12_console_descriptor_heap_test.cpp, added by the same3630610ca, does not compile — it uses aRef<T>template this tree does not have and callsIID_PPV_ARGSon avoid*.Method: Windows 11 26300, MSVC 19.52, RelWithDebInfo, Vulkan SDK 1.4.363.0. AI-assisted (OpenCode).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.