mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:00:52 +01:00
[PR #1164] d3d12: choose sparse-capable queues for sparse textures (D3D-SPARSE-IMAGE-QUEUE-FAMILY) #1195
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#1195
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/1164
Author: @lixonik
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:d3d-sparse-image-queue-family📝 Commits (1)
fb50e0bSelect sparse-capable queues for image-only residency📊 Changes
3 files changed (+30 additions, -24 deletions)
View changed files
📝
runtime/shims/d3d12_vulkan_device.cpp(+4 -10)📝
runtime/src/queue_families.h(+9 -8)📝
runtime/test/vk_queue_test.cpp(+17 -6)📄 Description
Claimed in the coordination issue as D3D-SPARSE-IMAGE-QUEUE-FAMILY.
What and why
Queue selection used sparse buffer residency as its gate, while the device can expose sparse 2D textures independently. With sparse textures and no sparse buffers, a D3D12 COPY or COMPUTE queue could keep a dedicated Vulkan queue without
VK_QUEUE_SPARSE_BINDING_BIT. Tile mapping on that queue would then pass an invalid queue tovkQueueBindSparse.Use the same sparse aliasing prerequisites for device initialization and queue selection. Apply the fallback when either sparse buffer or sparse 2D image residency is available, retaining dedicated queues that support sparse binding. Add a synthetic image-only case to the queue-family picker tests.
Tested
vk_queue_test.cppwith MSVC.vk_queue_testalso passed the CPU queue-slot checks. Its GPU portion reported skip because the local Ubuntu environment has no Vulkan loader.make_game.py --helppassed.git diff --checkandscripts/check_no_game_data.pypassed.GPUs tested: n/a (CPU-only synthetic checks).
AI-assisted.
Checklist
main.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.