Repository navigation
fix(agc): hold a pending producer batch with a timeline semaphore - #7913
Conversation
A host event cannot stay unsignaled across vkQueueSubmit, and vkSetEvent is illegal while that wait is still pending. The fixture now waits on a timeline semaphore and signals it only after the leased producer is submitted, so the earlier label stays pending and the indirect dispatch still takes the CPU fallback.
|
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.
Some 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.
|
|
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 |
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)