GPU: size presentation from composited planes #3682

Open
andrewpozdnakov7-jpg wants to merge 1 commit from upstream-pr/3682 into main
andrewpozdnakov7-jpg commented 2026-11-28 06:10:17 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T06:10:17Z.


The compositor can draw at most eight planes, but the presentation path used every submitted plane to size the back buffer. A dropped larger plane could resize the output and stretch the planes that survived. Apply the existing limit before sizing so both steps use the same planes.

The WARP regression draws a 32×32 red scene and a 64×64 half-blue eighth plane, then supplies a 128×96 green ninth plane. On main the readback is 128×96 with the red/blue blend. The patch keeps the output at 64×64 and preserves the blend at [127, 0, 128, 255]. The existing single-plane fallback and two-plane recovery checks pass in the same test.

Verified on Windows with app-local WARP 1.0.22 and Agility 1.620.2, with the D3D12 debug switch off and on. Strict GPU Clippy and the 191-file asset policy passed.

Please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding the change into another commit.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5537343382 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3682). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-28T06:10:17Z. --- The compositor can draw at most eight planes, but the presentation path used every submitted plane to size the back buffer. A dropped larger plane could resize the output and stretch the planes that survived. Apply the existing limit before sizing so both steps use the same planes. The WARP regression draws a 32×32 red scene and a 64×64 half-blue eighth plane, then supplies a 128×96 green ninth plane. On main the readback is 128×96 with the red/blue blend. The patch keeps the output at 64×64 and preserves the blend at `[127, 0, 128, 255]`. The existing single-plane fallback and two-plane recovery checks pass in the same test. Verified on Windows with app-local WARP 1.0.22 and Agility 1.620.2, with the D3D12 debug switch off and on. Strict GPU Clippy and the 191-file asset policy passed. Please retain the Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding the change into another commit. AI-assisted with OpenAI Codex.
andrewpozdnakov7-jpg commented 2026-11-28 06:13:30 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T06:13:30Z.


Windows CI passed at 31b94f1, including Clippy on both build configurations and the repository test job. The WARP readback case in the description applies to this head. The same plane cap also passed with compositor retry in #3675.

The next step is maintainer review.

Please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding this change into another commit.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7235159174 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3682#issuecomment-7235159174). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-28T06:13:30Z. --- [Windows CI](https://github.com/Marvisak/VIctory/actions/runs/46115369544/job/140887877930) passed at `31b94f1`, including Clippy on both build configurations and the repository test job. The WARP readback case in the description applies to this head. The same plane cap also passed with compositor retry in [#3675](https://github.com/Marvisak/VIctory/pull/3675#issuecomment-7235150024). The next step is maintainer review. Please retain the Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding this change into another commit. AI-assisted with OpenAI Codex.
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/3682:upstream-pr/3682'
git switch 'upstream-pr/3682'

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/3682'
git switch 'upstream-pr/3682'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3682'
git switch 'upstream-pr/3682'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3682'
git switch 'main'
git merge --squash 'upstream-pr/3682'
git switch 'main'
git merge --ff-only 'upstream-pr/3682'
git switch 'main'
git merge 'upstream-pr/3682'
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
Marvisak/VIctory!3682
No description provided.