mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:20:53 +01:00
[PR #1182] d3d12: keep sparse tile mappings in queue order (D3D-SPARSE-TILE-WAIT-ORDER) #1216
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#1216
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/1182
Author: @lixonik
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:d3d-sparse-tile-wait-order📝 Commits (1)
47420b2Keep sparse tile mappings in Vulkan queue order📊 Changes
4 files changed (+315 additions, -46 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+3 -3)📝
runtime/CMakeLists.txt(+8 -0)📝
runtime/src/vulkan_backend.h(+109 -43)➕
runtime/test/vk_sparse_queue_order_test.cpp(+195 -0)📄 Description
Claimed in the coordination issue as D3D-SPARSE-TILE-WAIT-ORDER.
What and why
D3D12 tile updates and copies submitted Vulkan sparse binds immediately, even when an earlier operation on the same queue was held waiting for a fence. A remap could therefore reach the GPU ahead of that operation, and a mapping copy could read stale source mappings.
Stage both mapping operations in the same queue FIFO as held batches and signals. Resolve the current mappings when the operation is released. Keep the heap backing alive across the hold and verify that the registered resources are still the ones named when the operation was queued. A held mapping that generates no sparse work still submits its pending waits in order.
Tested
vk_sparse_queue_order,vk_queue_constructor_oom,vk_buffer_registration_oom,vk_host_at_aliasing). Also compiled the Windows D3D12 command queue and device translation units with MSVC.git diff --checkand the game-data check passed.GPUs tested: n/a (synthetic Vulkan calls).
AI-assisted.
Checklist
main.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.