mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:10:52 +01:00
[PR #644] d3d12/xs: guard 48-bit host-import VAs and sync title-written descriptor heaps (D3D-RTX5070-HOST-HEAP-SYNC) #684
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#684
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/644
Author: @TanmaySatyam
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:feature/rtx5070-fixes📝 Commits (1)
2ec2ca4d3d12/xs: guard 48-bit host-import VAs and fingerprint-sync custom descriptor heaps📊 Changes
5 files changed (+339 additions, -10 deletions)
View changed files
📝
runtime/shims/d3d12_com.h(+7 -0)📝
runtime/shims/d3d12_vulkan_device.cpp(+5 -3)📝
runtime/shims/d3d12_xs_device.cpp(+114 -7)📝
runtime/test/d3d12_console_descriptor_heap_test.cpp(+148 -0)📝
runtime/test/d3d12_existing_heap_test.cpp(+65 -0)📄 Description
Claimed in the coordination issue as: D3D-RTX5070-HOST-HEAP-SYNC
AI-assisted.
Summary
runtime/shims/d3d12_vulkan_device.cpp)VK_EXT_external_memory_hostplaces a title-backed host import belowheap_base,address - heap_basewraps in 64-bit unsigned arithmetic (bits 48..63 = 0xFFFF), corrupting 48-bit V# buffer descriptors.va >= (1ull << 48)after subtractingheap_baseand falls back to the existing in-arena shadow buffer path cleanly.runtime/shims/d3d12_xs_device.cpp)ExecuteCommandLists/ExecuteCommandListsX.Testing & Verification
main@21625bca8)d3d12_existing_heap,d3d12_descriptor, andd3d12_console_descriptor_heapCTests underLEONIDA_VK_VALIDATION=1andVK_VALIDATION_VALIDATE_SYNC=1(3/3 passed, 0 validation errors).python -I scripts/check_no_game_data.py runtime/shims/d3d12_vulkan_device.cpp runtime/shims/d3d12_xs_device.cppexited 0.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.