GPU: clip MSAA resolves to the selected mip dimensions #2308
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2308
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2308/head"
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?
@andrewpozdnakov7-jpg on GitHub · 2026-11-25 10:15 UTC · original
andrewpozdnakov7-jpg:codex2/msaa-resolve-mip→main· +71 −22 · 1 files · 1 commits · closed without mergingThe 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.
@andrewpozdnakov7-jpg on GitHub · 2026-11-25 10:41 UTC · original
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