On 02/08/2019 08:21, Koenig, Christian
wrote:
That's not really how I see the semaphores working. The spec describe VkSemaphore as an interface to an internal payload opaque to the application.
When ctx1 waits on the semaphore, it waits on the payload put there by the previous iteration. Then it proceeds to signal it by replacing the internal payload.
ctx2 then waits on that and replaces the payload again with the new internal synchronization object.
The internal payload is a dma fence in our case and signaling just replaces a dma fence by another or puts one where there was none before. So we should have created a dependecy link between all the
submissions and then should be executed in the order of
QueueSubmit() calls.
-Lionel
|
_______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel