fix(agc): keep presenting after a SUBOPTIMAL present #9881

Merged
mazen320 merged 2 commits from upstream-pr/9881 into main 2026-11-02 07:59:01 +00:00
mazen320 commented 2026-10-22 20:29:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-22T20:29:26Z.


What

Keep presenting when vkQueuePresentKHR returns VK_SUBOPTIMAL_KHR instead of zeroing the swapchain extent. Window drag often reports suboptimal without a size change; clearing the extent made Presentable() false until Resize and dropped frames (flicker). OUT_OF_DATE still clears the extent, matching AcquireImage.

Tested

  • python tools/check_conventions.py --base upstream/main
  • Rebased onto current main; tip 5517fc49a5. Manual window-drag/resize evidence withdrawn by review (source review + short gate suffice).
  • Additional: @babyhuey Windows selected suite on tip 5517fc49a5 merged onto main 710cf9c0352 (RTX 3080): 798 pass / 3 fail / 689 skip; the 3 fails also fail on that main tip alone (pr_overlap_encoding, agc_host_import_cut_lifetime #10746, windows_trace_imports Defender FP). No failures from this PR.

Checklist

  • Depends on: none
  • Fixes: window-drag present flicker from SUBOPTIMAL zeroing extent
  • Unblocks: none
  • Silent stubs: none
  • GPUs tested: NVIDIA GeForce RTX 3080 (babyhuey Windows selected suite on tip 5517fc49a5)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4973691221 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9881). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-22T20:29:26Z. --- ### What Keep presenting when `vkQueuePresentKHR` returns `VK_SUBOPTIMAL_KHR` instead of zeroing the swapchain extent. Window drag often reports suboptimal without a size change; clearing the extent made `Presentable()` false until `Resize` and dropped frames (flicker). `OUT_OF_DATE` still clears the extent, matching `AcquireImage`. ### Tested - `python tools/check_conventions.py --base upstream/main` - Rebased onto current `main`; tip `5517fc49a5`. Manual window-drag/resize evidence withdrawn by review (source review + short gate suffice). - Additional: @babyhuey Windows selected suite on tip `5517fc49a5` merged onto `main` `710cf9c0352` (RTX 3080): 798 pass / 3 fail / 689 skip; the 3 fails also fail on that `main` tip alone (`pr_overlap_encoding`, `agc_host_import_cut_lifetime` #10746, `windows_trace_imports` Defender FP). No failures from this PR. ### Checklist - Depends on: none - Fixes: window-drag present flicker from SUBOPTIMAL zeroing extent - Unblocks: none - Silent stubs: none - GPUs tested: NVIDIA GeForce RTX 3080 (babyhuey Windows selected suite on tip 5517fc49a5) - AI-assisted: yes
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
boykopovar/AnyPS5!9881
No description provided.