GPU: clip MSAA resolves to the selected mip dimensions #2306
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2308"
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 Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-25T10:15:47Z.
The host resolve chose the whole-subresource operation whenever the two base texture sizes matched. A 16×16 multisampled source and a 16×16 destination still have different subresource sizes when the destination is mip 1 (8×8). The region path also clipped to the base sizes instead of the chosen mips.
Use the mip dimensions to decide whether a region is needed and to bound it. Recover the mip index from the subresource number so array slices and format planes start at mip zero. The previous whole resolve remains available when both the base and selected dimensions match.
940d32fselected a whole resolve for mip 1. Onc922080it selects an 8×8 region and clips correctly for an array slice.victory-gputests that ran passed, plus the temporary runtime identity check. Two tests were ignored. Strict Clippy with and without diagnostics and staged policy passed.D3D12 resolve rules · Coordination claim
AI-assisted with Codex. Synthetic data only.
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T10:19:21Z.
Review: COMMENTED
MSAA resolves clipped to the selected mip dimensions (resolve_region). Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1.
Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-25T10:21:54Z.
Review: APPROVED
Verified against
origin/main(940d32f) on Windows 11 + NVIDIA GeForce RTX 5090 and WARP:subresource % MipLevels.max(1)) inresolve_regioncleanly clips MSAA resolves to the selected destination mip dimensions instead of always using mip 0.cargo test -p victory-gpu msaa_resolve_region: 1/1 passed on RTX 5090, 1/1 passed on WARP.cargo clippy -p victory-gpu --all-targets -- -D warnings: 0 warnings.cargo xtask policy: 183 files ok.AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-25T10:41:12Z.
I found the earlier #652 while checking the resolve changes against the open queue. It already uses the selected mip extents for this decision and has a synthetic readback that reproduces the wrong pixels on RTX 5090. My WARP readback matched on both revisions, and my geometry check covers cases already exercised there. Closing this duplicate in favor of #652. The fork commit
c922080remains available for reference.Pull request closed