vkQueueSubmit not signalling Fence

I am submitting work to a queue with a fence, but the fence is never signalled, and I don’t understand why/how this is possible. VkQueueSubmit is returning VK_SUCCESS and the submitted work is being done.

pseudo:

  1. WaitForFence (UINT64_MAX timeout) (Fence was created at startup with signalled flag)
  2. ResetFence
  3. Build CommandBuffer
  4. vkQueueSubmit with Fence.

When the program returns back to step 1 (on the next frame) WaitForFence hangs (I’m assuming because the fence is unsignalled).

Note: The queue is also used elsewhere (but never with this fence).

Any ideas?

1 Like

Do you have validation layers set up and verified working?

What OS, GPU, and driver version do you have?

Problem with pseudocode is you are showing what you want to see instead of what is actually happening.
In the end if you are stuck, it is most effective to construct a minimal example.

Yes I did not check the validation layer correctly. It was a bug in my code. Now Fixed. Thanks for the help krOoze.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.