Repository navigation
Conversation
A submission can request disjoint pieces of a shadow buffer. Refreshing their bounding interval also copies the unrequested bytes between them and can overwrite a stale gap before the title asks for it. Port the interval union from the Windows implementation to this batch's refresh queue. Keep the single interval inline and merge touching or overlapping requests before their existing flush point. A native D3D12 test checks that two 64 KiB requests leave the intervening 64 KiB at its old value until a later request covers it. Based-on: fxceless/victory-fork#591 Based-on: Marvisak#1818 Reported-by: pablogonz12 (Marvisak#185) Tested-on: RX 6800 and Lavapipe, Fedora Linux 45, native VKD3D-Proton Assisted-by: gpt-6.2 sol xhigh
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.
The native submission queue currently takes the bounding interval of all refresh requests for each shadow. For two disjoint requests that refreshes the intervening bytes as a side effect. It can copy a gap early and it uses memory bandwidth that neither request needs.
This adapts DoubleD17's range union to the native queue and retains its existing flush points. It keeps a single interval inline and merges overlaps and touching intervals. A native host-buffer regression test initializes three 64 KiB pages, asks for the first and third, checks that the middle page kept its old contents, then asks for the middle page and checks the update.
The release
shadow_refreshestest filter ran three tests on the RX 6800 and on Lavapipe with native VKD3D-Proton (three passed on each, no adapter skips). The mapped-buffer case refreshes 128 KiB before the later request, compared with the previous interval's 192 KiB. Game frame time has not been measured with this patch.Based-on: fxceless/victory-fork#591
Based-on: Marvisak#1818
Tested-on: RX 6800 and Lavapipe, Fedora Linux 45
Assisted-by: gpt-6.2 sol xhigh