[Mesa-dev] [PATCH] gallium/u_queue: add optional cleanup callback
maraeo at gmail.com
Wed Jul 13 19:52:00 UTC 2016
On Wed, Jul 13, 2016 at 6:28 PM, Rob Clark <robdclark at gmail.com> wrote:
> Adds a second optional cleanup callback, called after the fence is
> signaled. This is needed if, for example, the queue has the last
> reference to the object that embeds the util_queue_fence. In this
> case we cannot drop the ref in the main callback, since that would
> result in the fence being destroyed before it is signaled.
> Signed-off-by: Rob Clark <robdclark at gmail.com>
> Maybe adding util_queue_add_job2() is a bit overkill.. although I
> think Marek has some in-flight stuff using u_queue, so maybe this
> approach is less conflicty?
I have nothing in flight at the moment. My experimental patch doesn't count.
This looks good but I'd like to have only one util_queue_add_job function.
More information about the mesa-dev