GPU: clip MSAA resolves to the selected mip dimensions #2308

Closed
github-bot wants to merge 1 commit from gh-pr/2308/head into gh-pr/2308/base
Owner

@⁠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 merging

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.

  • The geometry regression on 940d32f selected a whole resolve for mip 1. On c922080 it selects an 8×8 region and clips correctly for an array slice.
  • A synthetic WARP run cleared a 16×16 MSAA source with a contrasting 8×8 corner, resolved it into the 8×8 mip of a 32×32 target, and read back all 64 texels. Both builds produced the expected color on this WARP adapter. The regression catches the command geometry difference.
  • With app-local Agility 1.620.2 and WARP 1.0.22, all 147 victory-gpu tests 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:15 UTC · [original](https://github.com/Marvisak/VIctory/pull/2308) `andrewpozdnakov7-jpg:codex2/msaa-resolve-mip` → `main` · +71 −22 · 1 files · 1 commits · closed without merging 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. - The geometry regression on `940d32f` selected a whole resolve for mip 1. On `c922080` it selects an 8×8 region and clips correctly for an array slice. - A synthetic WARP run cleared a 16×16 MSAA source with a contrasting 8×8 corner, resolved it into the 8×8 mip of a 32×32 target, and read back all 64 texels. Both builds produced the expected color on this WARP adapter. The regression catches the command geometry difference. - With app-local Agility 1.620.2 and WARP 1.0.22, all 147 `victory-gpu` tests 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](https://microsoft.github.io/DirectX-Specs/d3d/ProgrammableSamplePositions.html#resolvesubresourceregion) · [Coordination claim](https://git.gtahub.st/github/Marvisak--VIctory/issues/1633) AI-assisted with Codex. Synthetic data only.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:01:49 +00:00
github-bot closed this pull request 2026-11-26 05:01:49 +00:00
Author
Owner

@⁠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 c922080 remains available for reference.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-25 10:41 UTC · [original](https://github.com/Marvisak/VIctory/pull/2308#issuecomment-7160035884) 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 `c922080` remains available for reference.

Pull request closed

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/Marvisak--VIctory!2308
No description provided.