Repository navigation
fix(agc): retain import settle resources per device - #7269
Merged
oneandonlydean merged 1 commit intoOct 17, 2026
Merged
Conversation
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
12 tasks done
12 tasks done
oneandonlydean
pushed a commit
that referenced
this pull request
Oct 18, 2026
Main's #7269 keeps the synchronous settle's buffer, memory and fence per device in ImportSettle, so clearing one device's imports releases only that device's objects. This branch's settle batches move there too: each device's ImportSettle holds its batch target, memory and batches with their fences, so switching devices no longer drops a device's batch handles, and clearing a device waits for and destroys only its own batches. The per-import settle state is renamed pendingSettles to stay clear of main's per-device map, and a submitted settle records the device whose batch it is in.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Switching between two live Vulkan devices overwrites the global import-settle buffer, memory and fence handles. Clearing imports can then release only the last device's resources. Keep settle resources per device and destroy only the cleared device's entry. The regression imports through A -> B -> A and checks both cleanup orders, plus repeated cleanup.
Overlap review: #6678 changes the same settle state for deferred Windows imports; its captured
adoptSettleDevicestill resets the original handles when switching devices. This fix does not require its deferred scheduling. #6457, #6479 and #6730 touch the adjacent state declaration; #6913 adds a separate test at the same insertion point. Additive/context conflicts need reconciliation if those land first; none is a dependency. The overlap tool also reports older branches that cannot be compared against current main, so this is not a claim that every stale proposal merges together.Tested
Linux, Ryzen 9 7950X, Radeon RX 6650 XT, RADV Mesa 26.2.4-arch1.1. New regression failed without the fix (10 failed assertions) and passed with it. Nine focused checks passed in 4.40 seconds with core validation enabled on the integration build: host-import unmap, parked-import unmap, retirement, sampled-storage views, CMASK, retire, sparse dma-buf, driver graphics and address-space teardown.
Native Infliction PPSA02688 on integration commit
bfdd817a11abe21583643a695dc9093f72ffef02reached the gameplay objective at 239.97 s, exited normally after 324.55 s, left no process and restored the kernel limit. Core validation reported zero VUIDs, including no previously observed leaked buffer/memory/fence teardown errors. This was the existing integration stack plus this fix; the main-based branch was not separately built or run. No performance gain or lighting improvement is claimed; the scene remains dark. The full Recorder suite retains a previously recorded pending-write assertion failure, so these are focused passes, not a full-suite pass.Rebased onto
084bd39a085cf5a85a1dea19163184ba74ac1905; neither changed file changed upstream since the tested base. Conventions and diff checks pass. Game evidence: #6996 (comment)Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)