mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:30:53 +01:00
[PR #1099] [MERGED] runtime: order consecutive buffer copies on the same queue (RT-STREAM-TRANSFER-BARRIER) #1133
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#1133
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/1099
Author: @Moriz82
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @QemmHD
Base:
main← Head:split/rt-stream-transfer-barrier📝 Commits (1)
ddcffa6runtime: order consecutive buffer copies on the same queue (RT-STREAM-TRANSFER-BARRIER)📊 Changes
3 files changed (+64 additions, -5 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+3 -0)📝
runtime/src/vulkan_replay.h(+23 -0)📝
runtime/test/replay_copy_offset_test.cpp(+38 -5)📄 Description
Claimed in the coordination issue as: RT-STREAM-TRANSFER-BARRIER (claim).
Part of the split of #984 into small pull requests.
Depends on: none
Overlaps: #354 (closed without merging) supplies the transfer dependency. This child credits that contribution, adds the rollback switch and tests the emitted commands.
What and why
A D3D12 queue can submit overlapping buffer copies back to back. Without a Vulkan memory dependency, a later copy can read or overwrite bytes before the earlier transfer write finishes. Emit a transfer-stage memory barrier before each plain buffer copy, including the first one in a list. A preceding list on the same queue can have written those bytes. Real Vulkan contexts provide the barrier entry point. The existing query mock also exercises a context that omits it. Set
LEONIDA_ORDER_BUFFER_COPIES=0to restore the old behavior.Tested
Cross-built with clang-cl 23 and the xwin SDK. Ran the command-recording fixtures under Proton Experimental (Wine 11) on CachyOS Linux 7.3, Ryzen 5 5600X, 16 GB.
GPUs tested: none. The fixtures record Vulkan commands and check the stage and access masks. Native Windows, AMD, Intel and a game boot were not tested.
AI-assisted: yes
Checklist
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.