Test texture zero copies replace every mip and array slice on D3D12 #1946

Open
NotADonky43 wants to merge 1 commit from upstream-pr/1946 into main
NotADonky43 commented 2026-11-29 03:43:52 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by NotADonky43 on 2026-11-29T03:43:52Z.


Add an opt-in hardware regression for texture::zeros, useful for changes such as #1588. Record a 59×19 and a 2049×600 RGBA texture with three mips and two array slices in the same list. Fill every useful texel byte with a nonzero sentinel, copy out the before-image, record the real zero operation, and copy out the after-image. Submit once and wait on the queue fence. Check the sentinel and zero bytes for all 12 subresources, excluding row padding. Recording both sizes before execution exercises source lifetime when the allocator grows. A missing GPU fails the explicitly requested test rather than passing it. No production behavior or shader changes. Tested on main 568c5e5d plus this patch, RTX 5070 Ti, Windows, optimized build: cargo test --release --locked -p victory-gpu --lib texture_zeros_replace_every_mip_before_submission -- --ignored --nocapture (1 passed, 0 skipped). This is a byte-content regression, not an FPS or visual-parity assertion.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5547275947 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1946). Originally posted by [NotADonky43](https://github.com/NotADonky43) on 2026-11-29T03:43:52Z. --- Add an opt-in hardware regression for texture::zeros, useful for changes such as #1588. Record a 59×19 and a 2049×600 RGBA texture with three mips and two array slices in the same list. Fill every useful texel byte with a nonzero sentinel, copy out the before-image, record the real zero operation, and copy out the after-image. Submit once and wait on the queue fence. Check the sentinel and zero bytes for all 12 subresources, excluding row padding. Recording both sizes before execution exercises source lifetime when the allocator grows. A missing GPU fails the explicitly requested test rather than passing it. No production behavior or shader changes. Tested on main 568c5e5d plus this patch, RTX 5070 Ti, Windows, optimized build: `cargo test --release --locked -p victory-gpu --lib texture_zeros_replace_every_mip_before_submission -- --ignored --nocapture` (1 passed, 0 skipped). This is a byte-content regression, not an FPS or visual-parity assertion.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1946:upstream-pr/1946'
git switch 'upstream-pr/1946'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/1946'
git switch 'upstream-pr/1946'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1946'
git switch 'upstream-pr/1946'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1946'
git switch 'main'
git merge --squash 'upstream-pr/1946'
git switch 'main'
git merge --ff-only 'upstream-pr/1946'
git switch 'main'
git merge 'upstream-pr/1946'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

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