GPU: bound detiling slices to the upload allocation #987
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/989"
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?
Imported from fxceless/victory-fork. Originally posted by gmankab on 2026-11-25T15:14:59Z.
D3D12 can omit the final row's trailing pitch padding from the size returned by GetCopyableFootprints. The texture detiler currently constructs a mutable slice as if all rows, including the last, had a full pitch of allocated bytes. The zero-fill path also writes through that slice.
Bound each subresource slice to the mapped upload allocation while preserving the row and depth pitches for detiling. An offset beyond the allocation is rejected.
Validation
Tested-on: RX 6800, Fedora Linux 45, native vkd3d-proton and Wine
Assisted-by: gpt-6.2 sol xhigh
Imported from fxceless/victory-fork. Originally posted by ThomasHFWright on 2026-11-25T18:12:12Z.
Linux/Proton validation of
e72eb0318d, cherry-picked with attribution into ThomasHFWright/LinVictory.CachyOS, Ryzen 7 9800X3D, RTX 5090, NVIDIA 620.73.04, GE-Proton 11-14, pinned patched vkd3d-proton runtime. Added synthetic BC7 mip/array, volume and zero-fill canary coverage for short staging allocations. GPU suite: 211 passed, 4 existing Wine/runtime failures, 8 ignored. Application build and all-target/all-feature Clippy pass.
The staging-only trial reached normal but incomplete world visuals for 478.80 s, without an NVIDIA Xid, then the same existing title breakpoint. Expensive diagnostic flags were also disabled, so this is not an isolated performance claim for this patch.
Source and detailed aggregate validation: https://github.com/ThomasHFWright/LinVictory/blob/linux-edge/docs/linux-improvements.md
AI-assisted integration/testing with OpenAI Codex. No game data or raw logs attached.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.