Repository navigation
Conversation
GetCopyableFootprints includes the last row's payload but may omit its trailing pitch padding. The old detiler made a mutable slice covering a full pitch for every row, including bytes beyond the upload buffer. Create the mapped slice with the allocated size and bound each mip's slice to that allocation while preserving its row and depth pitches. Round-trip eight synthetic BC7 mips through a native D3D12 device and check their payload bytes, including the final row with no pitch padding. Tested-on: RX 6800, Fedora Linux 45, native vkd3d-proton and RADV Assisted-by: gpt-6.2 sol xhigh
Native recording issues a buffer-to-image copy for every sampled title texture, even when detiling found unchanged bytes. Decide whether to copy after the submission refresh. Transition the host texture from its current state to COPY_DEST only for a pending upload, then bring it to the state expected by the first command. A second list can reuse the uploaded texture in the same submission. Based-on: Marvisak#230 Depends-on: spidercraft#12 Tested-on: Intel Xeon E5-2670 v3, Fedora Linux 45, Lavapipe and native VKD3D-Proton (44 GPU tests plus the eight-mip BC7 round-trip) 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.
Native Victory records a buffer-to-image upload every time a command list first samples a title-written texture. The list can copy a whole mip chain even when submission-time detiling found the same title bytes.
Move the upload into the prelude after the staging refresh. Only a pending upload transitions into COPY_DEST and copies staged data. The prelude then transitions the host texture to the first state the list expects. The existing resource references hold both the texture and staging buffer through execution.
The live regression uses a synthetic 1024×512 BC7 sRGB texture. It reads back all eight mips across submissions containing two lists. It overwrites clean staging with sentinels to detect any redundant upload, then changes the title data and checks that the next submission sees it.
A native startup replay also reached the 160-second limit on Lavapipe. Frame times during loading were similar with and without the patch.
Based-on: Marvisak#230
Depends-on: #12
Tested-on: Intel Xeon E5-2670 v3, Fedora Linux 45, Lavapipe and native VKD3D-Proton. 44 GPU tests and the opt-in BC7 regression passed with physical GPU access disabled.
Assisted-by: gpt-6.2 sol xhigh
Review this layer's diff.