fix(agc): hold a pending producer batch with a timeline semaphore #7913
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7913"
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 mazen320 on 2026-10-19T13:41:44Z.
What
The pending-producer fixture kept its earlier label batch from completing by waiting on a host event and calling
vkSetEventonly after the leased producer was submitted. Vulkan rejects that: aHOSTwait has to be signaled before the command buffer is submitted (VUID-vkCmdWaitEvents-srcStageMask-01158), andvkSetEventis illegal while that wait is still pending (VUID-vkSetEvent-event-09543). The fixture now submits the label batch with a wait on a timeline semaphore and signals that semaphore from the host after the producer submission. The label stays pending, the producer stays unsubmitted until the indirect dispatch, and that dispatch still takes the pending-label CPU fallback (cpuReason 2). The five-second watchdog still releases the wait and the fixture still fails if the producer was never submitted.Tested
Windows 11, NVIDIA GeForce RTX 5090, driver 617.42.
agc_driver_indirect_arguments_pending_producer_testswithANYPS5_NO_SHADER_CACHE=1andVK_LAYER_KHRONOS_validation(Khronos 1.4.304): 3/3 fresh runs passed, each reportingpending producer CPU fallback: cpuReason 2.VUID-vkCmdWaitEvents-srcStageMask-01158andVUID-vkSetEvent-event-09543did not appear. The same layer reportsVUID-VkDeviceCreateInfo-pNext-pNextat device creation because it does not know a structure in this tree's Vulkan headers; that report is unchanged by this fix.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)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T13:53:30Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hppL806core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hppL806Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-19T20:09:15Z.
I reviewed this against #7868. The label submission waits on the timeline semaphore, and the host signals it only after the producer submission is observed, so the pending-label fallback remains the condition under test while avoiding the invalid event wait/signal sequence. The reported three RTX 5090 runs retain
cpuReason 2and contain neither of the two fixture VUIDs. I found no issue in this focused change. I did not independently run Vulkan hardware validation on this host.