renderdoc icon indicating copy to clipboard operation
renderdoc copied to clipboard

Vulkan driver: vkQueueSubmit() serializer passes the same <fence> over and over again without resetting it

Open kbiElude opened this issue 10 years ago • 2 comments

vkResetFences() calls are not passed down to the driver, instead being replaced with wait-idle calls. This works most of the time, but I think there's at least one case that's been missed.

Consider an app which re-uses the same fence for vkQueueSubmit() calls. Before the second submission, it calls vkResetFences() to reset the fence. This invocation is removed by RenderDoc serializer. However, the same fence handle is later passed to vkQueueSubmit() call, which is against the following spec language:

Valid usage:

(..)

* fence must be unsignalled

kbiElude avatar Mar 09 '16 14:03 kbiElude

Simple fix should work I think - just need to actually replay the vkResetFences(). It's not used for explicit waiting or anything but it's still passed into vkQueueSubmit.

baldurk avatar Mar 09 '16 19:03 baldurk

Works for me! Thanks, Baldur :)

DominikWitczakAMD avatar Mar 10 '16 15:03 DominikWitczakAMD