mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:10:53 +01:00
[PR #87] [CLOSED] runtime/shims: fix acphal context sizes and guard Vulkan heap helper on non-Vulkan builds #139
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#139
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/87
Author: @Andretuta
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:old-pr/9815📝 Commits (2)
213186eruntime/shims: fix SHAPE_XMA/PCM_CONTEXT sizes in acphal and guard Vulkan heap helper in d3d12_xs_device0285d16runtime: fix Vulkan ConsoleDescriptorHeap compile errors on MSVC📊 Changes
4 files changed (+12 additions, -7 deletions)
View changed files
📝
runtime/shims/acphal.cpp(+2 -2)📝
runtime/shims/d3d12_vulkan_device.cpp(+2 -1)📝
runtime/shims/d3d12_xs_device.cpp(+5 -0)📝
runtime/test/d3d12_console_descriptor_heap_test.cpp(+3 -4)📄 Description
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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.