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

Open
github-bot wants to merge 1 commit from github-bot/gh-1946 into main AGit
Owner

@⁠NotADonky43 on GitHub · 2026-11-29 03:43 UTC · original
NotADonky43:test/texture-zero-mip-readback → main · +164 −0 · 2 files · 1 commits · open

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.

**@⁠NotADonky43** on GitHub · 2026-11-29 03:43 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1946) `NotADonky43:test/texture-zero-mip-readback` → `main` · +164 −0 · 2 files · 1 commits · open 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 03:44:37 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1946/head:github-bot/gh-1946'
git switch 'github-bot/gh-1946'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1946'
git switch 'github-bot/gh-1946'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1946'
git switch 'github-bot/gh-1946'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1946'
git switch 'main'
git merge --squash 'github-bot/gh-1946'
git switch 'main'
git merge --ff-only 'github-bot/gh-1946'
git switch 'main'
git merge 'github-bot/gh-1946'
git push origin 'main'
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!1946
No description provided.