mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:15:51 +01:00
[PR #1284] vulkan: a barrier that keeps an image's layout adds no tracker journal entry, and tests for the journal (VK-TRACKER-NO-COPY) #1316
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#1316
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/1284
Author: @DadaCap
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:vk-tracker-undo📝 Commits (6)
c74f8f3vulkan: a submission changes the layout tracker in place and takes its changes back (VK-TRACKER-NO-COPY)5959a09vulkan: a barrier that keeps the layout leaves the tracker aloneddda285Merge main into vk-tracker-undo: the tracker is told of a real layout change only, never of a release2c17881Merge origin/main into vk-tracker-undo8532369Merge main into vk-tracker-undo: main's journal (#1723) replaces ours; the same-layout skip and the tests stay7358f32Merge main into vk-tracker-undo: main's depth-UAV barrier statistics arguments with the same-layout skip📊 Changes
2 files changed (+89 additions, -2 deletions)
View changed files
📝
runtime/src/vulkan_replay.h(+7 -2)📝
runtime/test/replay_texture_barrier_test.cpp(+82 -0)📄 Description
Claimed in the coordination issue as: VK-TRACKER-NO-COPY
Narrowed on 2026-11-25. This pull request replaced the copy of the whole
LayoutTrackerper submission with an undo journal. #1723 merged the same journal intomain, so after mergingmain(its version taken in both files) only the part it does not have is left: 7 net lines invulkan_replay.hand the tests.What
to_attachmentand the texture barrier inemit_commandscalledLayoutTracker::seteven when every piece already had the new layout. With the journal open, the first such call per image and submission copies that image's entry (two allocations). They now callsetonly when a piece really changes, or for a discard. The barrier itself is still recorded.initialize()updates the tracker itself for an image's first use.mainhas none of:begin/rollback/commit(a changed layout put back, a second change keeping the first note, an image tracked sincebeginforgotten again, a forgotten image brought back,commitkeeping the change), and a same-layout barrier or attachment reuse allocating nothing while still recording its barrier.Tests
RTX 5080, NVIDIA 621.24, Windows 11, VS 18 RelWithDebInfo, head
8532369aa(main0d80bc5dfmerged in):ctestwithout the tests that matchpresent|window|splash|pad|xinput|movie(they open windows): 423 of 423 pass,replay_texture_barrier_testamong them. Not run: those excluded tests, other GPUs, Linux, a retail boot of this head.AI-assisted (Claude Code).
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.