mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:00:52 +01:00
[PR #869] runtime: D3D12.X command submission, multi-segment sync points, and Vulkan presentation swapchain #907
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#907
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/869
Author: @Tortoche
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:feat/d3d12x-execute-command-lists📝 Commits (2)
4ff2c49runtime: D3D12.X command submission, multi-segment sync points, and Vulkan presentation swapchain (Phase 1 / Axe 1)e6a069aruntime/presenter: unlock mutex before frame callback and validate reset_cmd_buf dispatch📊 Changes
9 files changed (+5065 additions, -2 deletions)
View changed files
📝
runtime/CMakeLists.txt(+13 -0)➕
runtime/shims/d3d12_x.cpp(+1140 -0)➕
runtime/shims/d3d12_x.h(+472 -0)📝
runtime/src/command_list.h(+1 -2)➕
runtime/src/vulkan_device.cpp(+867 -0)➕
runtime/src/vulkan_device.h(+348 -0)➕
runtime/src/vulkan_presenter.cpp(+975 -0)➕
runtime/src/vulkan_presenter.h(+292 -0)➕
runtime/test/d3d12_x_stress_test.cpp(+957 -0)📄 Description
Claimed in the coordination issue as: RUNTIME-D3D12X-EXECUTE (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135050832)
What and why
D3D12.X Command Submission (
CommandQueueX):ExecuteCommandListsX, wrappingID3D12CommandQueuewith extended metadata parsing and command list unwrapping.Multi-Segment Sync Point Splitting:
Vulkan Presentation Swapchain:
VulkanPresentationSwapchainwith robust surface creation, format negotiation, and clean resource deallocation on window resize (preventing fence/semaphore leaks).Empirical Regression & Stress Tests:
runtime/test/d3d12_x_stress_test.cppcovering 9 comprehensive test cases: multi-threaded command recording, 64-list batch submissions, queue flushes, headless swapchain lifecycle, sync point placement, and resource leak regression checks.Tested
d3d12_x_stress_testpasses 9/9 tests with 0 failures:test_command_list_recording_stress: PASSEDtest_command_list_concurrent_recording: PASSEDtest_execute_command_lists_x_multiple_lists: PASSEDtest_queue_flushes_and_frame_boundaries: PASSEDtest_headless_presentation_swapchain: PASSEDtest_headless_detection_environment: PASSEDtest_bug_sync_point_wait_placement: PASSEDtest_bug_premature_cpu_fence_signal: PASSEDtest_bug_swapchain_resize_resource_leak: PASSEDnewline="\n").scripts/check_no_game_data.py: 0 violations.AI-assisted: yes.
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.