Preserve adjacent pixels during partial texture readback #2412

Manually merged
github merged 1 commit from github-bot/gh-2412 into main 2026-11-30 14:16:46 +00:00 AGit
Owner

@⁠NemesisDawn on GitHub · 2026-11-29 12:50 UTC · original
NemesisDawn:fix/partial-texture-readback → main · +188 −31 · 5 files · 1 commits · merged 2026-11-30 14:12 UTC

On RTX 5080 the release overwrote byte 8 just beyond a 2x2 RGBA rectangle. The fix preserved every surrounding byte in a 2048-byte destination and handles destination offsets. Tested small BC1 and 3D RGBA mips. Full GPU unit suite: 916 passed, 0 failed, 57 ignored. Gameplay impact unmeasured.

**@⁠NemesisDawn** on GitHub · 2026-11-29 12:50 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2412) `NemesisDawn:fix/partial-texture-readback` → `main` · +188 −31 · 5 files · 1 commits · merged 2026-11-30 14:12 UTC On RTX 5080 the release overwrote byte 8 just beyond a 2x2 RGBA rectangle. The fix preserved every surrounding byte in a 2048-byte destination and handles destination offsets. Tested small BC1 and 3D RGBA mips. Full GPU unit suite: 916 passed, 0 failed, 57 ignored. Gameplay impact unmeasured.
When copying a texture region into a buffer, land only the rows and slices covered by the source and destination boxes. Preserve padding and surrounding guest bytes. Use physically block-aligned staging for small compressed mips.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 12:54:51 +00:00
github manually merged commit d50b3c0039 into main 2026-11-30 14:16:46 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!2412
No description provided.