fix(agc): preserve draw pipeline order for committer flushes and HLE clears #18809
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/18809"
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 vovasicidk on 2026-11-12T11:06:36Z.
What
DrawPipeline::HeldReadsonDrawPipeline::Queue0()'s committer thread topipeline.items.front()(committerPipelinethread-local scope inDrawPipeline::run()), so future queued draws (items[1..N-1], up to 31 ahead withAPS5_PIPELINED_DRAWS=32) do not blockStorageTexture::FlushPendingfor the currently executing item while keeping full queue checks for external callers and the active item's own reads.DrawPipeline::Queue0()beforeGraphics::TakeMultisampledSingleClearmutates single-clear state or reads guest descriptors, and move the fallbackGraphics::MatchMemoryValueFill->Graphics::NoteMemoryValueFillpath afterfillBuffer(which already notes depth metadata at commit time) andDrawPipeline::Queue0().Drain.agc_driver_pipelined_flush_read_order(tests/execution/PipelinedFlushReadOrder.cpp+tests/cmake/agc_driver_pipelined_flush_read_order_tests.cmake) testing committer vs externalHeldReads, VulkanStorageTexture::FlushPendingpast future queued reads underAPS5_PIPELINED_DRAWS=32, andMatchMultisampledSingleCleardrainingDrawPipeline::Queue0().Tested
1.4.363.0-1.ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layerviactest --test-dir build -R <pattern> -V):main): 21/21 focusedagc_driver_*tests passed in 42.54 s (Insert instance layer "VK_LAYER_KHRONOS_validation"x24, 0was not found, 0VUID-/SYNC-HAZARD-errors).fix/agc-pipelined-draw-order8a62a39f62d): 24/24 focusedagc_driver_*tests passed in 40.81 s (Insert instance layer "VK_LAYER_KHRONOS_validation"x30, 0was not found, 0VUID-/SYNC-HAZARD-errors, 0 skipped), includingagc_driver_pipelined_flush_read_order,agc_driver_pipelined_flush_read_order_draw_pipeline, andagc_driver_pipelined_flush_read_order_plan_verify.python tools/check_conventions.pyandpython tools/check_test_registration.pyboth exited 0 (2563 test executable(s)).FAR: Changing Tides (PPSA03766)itself was not run here; behavior was verified at the driver/Vulkan level.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)