Fix texture upload offsets and packed RGB mip sizes #2411

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

@⁠NemesisDawn on GitHub · 2026-11-29 12:50 UTC · original
NemesisDawn:fix/texture-copy-footprint-layout → main · +109 −22 · 1 files · 1 commits · merged 2026-11-30 14:12 UTC

A nonzero buffer offset shifted BC7 mips. On RTX 5080, stock offsets matched 0 of 896 bytes; the fix matched 896 of 896. Both packed formats matched all 48 bytes. Six footprint tests passed. Serial GPU suite: 917 passed, one known card-steps failure, 57 ignored; three parallel failures passed alone. Gameplay impact unmeasured.

**@⁠NemesisDawn** on GitHub · 2026-11-29 12:50 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2411) `NemesisDawn:fix/texture-copy-footprint-layout` → `main` · +109 −22 · 1 files · 1 commits · merged 2026-11-30 14:12 UTC A nonzero buffer offset shifted BC7 mips. On RTX 5080, stock offsets matched 0 of 896 bytes; the fix matched 896 of 896. Both packed formats matched all 48 bytes. Six footprint tests passed. Serial GPU suite: 917 passed, one known card-steps failure, 57 ignored; three parallel failures passed alone. Gameplay impact unmeasured.
Calculate relative upload alignment before adding the caller's base offset. Account for the full four-byte horizontal pair in both packed RGB formats. A native RTX 5080 BC7 upload/readback matched 896/896 payload bytes with corrected layouts versus 0/896 with the original offsets.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 12:54:50 +00:00
Author
Owner

@⁠Dukestar69 on GitHub · 2026-11-29 13:05 UTC · original · approved these changes

Tested locally merged onto main (829188e9).

  • Merge: Clean merge in crates/victory-gpu/src/resource.rs.
  • Tests (RTX 5090): cargo test -p victory-gpu --lib resource:: passed (47 passed; 0 failed; 1 ignored, including the 3 new tests packed_rgb_copy_footprints_keep_whole_horizontal_pairs, footprint_size_only_is_independent_of_the_upload_buffer_base, and upload_footprints_add_the_base_after_placing_bc7_mips) with 0 new warnings.

Clean texture upload offset and packed RGB mip footprint fix. LGTM.

Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).

**@⁠Dukestar69** on GitHub · 2026-11-29 13:05 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2411#pullrequestreview-6102997965) · **approved these changes** Tested locally merged onto `main` (`829188e9`). - **Merge**: Clean merge in `crates/victory-gpu/src/resource.rs`. - **Tests (RTX 5090)**: `cargo test -p victory-gpu --lib resource::` passed (`47 passed; 0 failed; 1 ignored`, including the 3 new tests `packed_rgb_copy_footprints_keep_whole_horizontal_pairs`, `footprint_size_only_is_independent_of_the_upload_buffer_base`, and `upload_footprints_add_the_base_after_placing_bc7_mips`) with 0 new warnings. Clean texture upload offset and packed RGB mip footprint fix. LGTM. Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
github manually merged commit 8a0ab6af15 into main 2026-11-30 14:16:24 +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!2411
No description provided.