Repository navigation
Conversation
main a60e5ea does not compile the runtime. Three source-level breaks, all from the merge train: - d3d12_xs_device.cpp: Xbox slot 14's proxy calls rt::d3d12::create_console_descriptor_heap but the TU never sees it. Declared out of line rather than including d3d12_com.h, which pulls gfx10_descriptors.h/vulkan_backend.h into the standalone proxy tests that lack the Vulkan include path. - d3d12_vulkan_device.cpp: the helper needs a non-const DeviceState& (Device::state() is const) and the private Device::identity(); added a non-const state() overload and used the existing public holder(). - acphal.cpp: sizeof(SHAPE_XMA_CONTEXT) was 60 (assert 64) and sizeof(SHAPE_PCM_CONTEXT) 28 (assert 32). The repo ABI test asserts the GDK sizes 64/32, so the structs are one trailing dword short: reserved[10]->[11], reserved[1]->[2]. Verified: gta6rt and the whole target set build, except d3d12_console_descriptor_heap_test (separate break in the same commit: 2-arg create_device_proxy vs 3-arg, undefined Ref<>), left to its author. AI-assisted (OpenCode). (cherry picked from commit 100229ff16028803262b4cd8741f874a721c9b92)
…riptor_heap so they link The build fix turns the d3d12_xs_device.cpp compile error into a link error for root_sig_test/device_proxy_test/xs_proxy_mock_test (LNK2019). They compile d3d12_xs_device.cpp but do not link d3d12_vulkan_device.cpp where the slot-14 console helper lives. Add an inert E_NOTIMPL definition to those three targets only; the runtime links the real one.
…the stub too Five more targets compile shims/d3d12_xs_device.cpp and do not link gta6rt_d3d12_com (the TU that defines the slot-14 console helper), so they hit the same LNK2019: pe_loader_test, test_pe_loader_bounds, pe_loader_fuzz, and d3d12_xs_root_signature_test (behind LEONIDA_D3D12_SHIM_TESTS). fsr_dispatch_test and bvh_builder_test already link gta6rt_d3d12_com, so they must NOT get the stub (it would be LNK2005) - verified both ways. With this, every configured consumer links.
This was referenced Nov 24, 2026
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):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).