Repository navigation
Conversation
…lkan heap helper in d3d12_xs_device
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):Fixes two CPU-only Windows MSVC build regressions on
main(2d53a8055):Changes
runtime/shims/acphal.cpp:SHAPE_XMA_CONTEXTpadding (reserved[10]->reserved[11]): the preceding 24-bit bitfield group followed by 26-bitcurrentByteOffsetsplits into separate 32-bit storage units under MSVC, making the struct 60 bytes and failingstatic_assert(sizeof(SHAPE_XMA_CONTEXT) == 64). Static analysis ofgame_scarlett_master.execonfirmsshl r8, 6(64-byte stride) when zeroing the XMA context array.SHAPE_PCM_CONTEXTpadding (reserved[1]->reserved[2]): 6 32-bit bitfield words + 1 reserved dword was 28 bytes, failingstatic_assert(sizeof(SHAPE_PCM_CONTEXT) == 32).runtime/shims/d3d12_xs_device.cpp:"d3d12_com.h"and callrt::d3d12::create_console_descriptor_heap(...)only whenLEONIDA_VULKAN_DEVICEis defined, so CPU-onlygta6rtbuilds (without Vulkan headers/device) compile and link cleanly and fall back to standardCreateDescriptorHeap.Verification
cmake -S runtime -B build_fix+cmake --build build_fix --config Release -j: builtgta6rt.exeand all CPU test targets cleanly on MSVC 19.44 (10.0.26100.0SDK).ctest --test-dir build_fix -C Release -R "acphal|device_proxy|xs_proxy|com_shim|bcrypt_rng":12/12passed.python tests/test_acphal_abi.py:4/4OK.python tests/test_ctest_registration.py:4/4OK.gta6rt.exe --dry-run game_scarlett_master.exe: resolvesAcpHal.dll(9/9 exports viashim).python scripts/check_no_game_data.py,git diff --check.#9677(https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116626255).AI-assisted: yes