fix(agc): separate pipeline drain and device lock timings #8034
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8034"
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 JJenkx on 2026-10-19T18:17:44Z.
What
Driver.Packet.device_lockstarts at packet entry, before the draw-pipeline drains. Waiting for queued draws is therefore attributed to the device mutex. Addpipeline_prepareandpipeline_draincheckpoints so the existingdevice_lockstage measures the subsequent shared-lock section. Packet ordering, lock conditions and drain decisions are unchanged.This is a profiling attribution fix; it makes no speed claim.
Tested
On current main
8c9161eaca00and the rebased change (also checked on earlier mainf52509acc7d6):trace_digest,agc_performance_trace,agc_driver_graphics,agc_driver_draw_pipeline_trace, andagc_driver_draw_pipeline_trace_disabled: 5/5 passed per revision, no skips. Graphics tests usedANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1, andVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation; neither log contains a missing-layer warning orVUID-error.libsbuilds and conventions pass.Before the final rebase onto #7119 (allocation diagnostics), native revision
9c59f9fc36deon mainf52509acc7d6: Record of Lodoss War (PPSA05347), stationary initial forest: 250-second run exited zero, scripted inputs, screenshots at 190/240 seconds visually checked, normal close, PID gone, kernel setting restored. Official 200:30 trace has no dropped events. The newpipeline_drainphase is 12.982 ms/present in its summary; retained spans include 15,771 pipeline drains and only one device-lock span (22.744 us). Short spans are folded, so retained sums do not measure total mutex time. Reused prior main shader/Mesa caches; no main/change performance comparison is claimed. Four existing storage-image-results-pending warnings were emitted at shutdown, and host-import allocation failures fell back to copies during startup/transition.Native trace, screenshots and original focused-test evidence. Repeated focused tests on current main and rebased change.
The overlap tool could not compare 11 stale/conflicting shared-file PRs. Manual review of their cached patches found no duplicate timing split; no dependency is needed.
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)