fix(agc): recapture and skip refused draws on the draw finisher #15455
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15455"
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 boykopovar/AnyPS5. Originally posted by Nesyth on 2026-11-03T11:49:11Z.
What
A draw finished on the draw finisher (
APS5_DRAW_PIPELINE, #6946) handled two cases differently from the same draw finished on queue 0's worker. The capture check before the hand-off to the committer (capturedMemoryChanged) ran only on the worker, since its redo replays the draw from the worker's queue state. So a draw whose captured memory changed before that point was recorded with the old capture. WithAPS5_SKIP_REFUSED_DRAWS=1, a draw refused on the finisher stopped the driver instead of being skipped. The finisher now runs the check too, and on a change it captures the draw's stages again from the tail it already holds. A refused draw is reported and skipped as on the worker.RecaptureScope), as the worker's redo does.finishDraw; the conflicts are textual.Tested
Windows 11 Pro 26300, Radeon RX 7900 XTX (AMD Software 26.10.1), Ryzen 7 7800X3D, Release, MinGW-w64 GCC 15.2.
agc_driver_draw_recapture_on_change_finisherandagc_driver_draw_unsupported_buffer_type_skip_refused_finisherrun the two existing tests with the finisher on. Removing the finisher's check, the restart before the second pass or the refused-draw catch makes the matching test fail.^agc_suite, 1290 tests, has the same two failures asmain(agc_driver_direct_write_completion,agc_driver_sample_order_grid_reference). This holds with the finisher off and withAPS5_DRAW_PIPELINE=1set for every test.mainand 177 on this branch (the two finisher variants) pass. Both report the same 6 lines ofVUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605and no missing layer.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)