[Mesa-dev] [PATCH 2/2] gallium/u_queue: assert that users must wait on fences before destroying them

Marek Olšák maraeo at gmail.com
Sat Jul 9 20:35:29 UTC 2016


The series is:

Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Sat, Jul 9, 2016 at 7:44 PM, Nicolai Hähnle <nhaehnle at gmail.com> wrote:
> From: Nicolai Hähnle <nicolai.haehnle at amd.com>
>
> ---
>  src/gallium/auxiliary/util/u_queue.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/gallium/auxiliary/util/u_queue.c b/src/gallium/auxiliary/util/u_queue.c
> index 2429336..ac3afa1 100644
> --- a/src/gallium/auxiliary/util/u_queue.c
> +++ b/src/gallium/auxiliary/util/u_queue.c
> @@ -204,6 +204,7 @@ util_queue_fence_init(struct util_queue_fence *fence)
>  void
>  util_queue_fence_destroy(struct util_queue_fence *fence)
>  {
> +   assert(fence->signalled);
>     pipe_condvar_destroy(fence->cond);
>     pipe_mutex_destroy(fence->mutex);
>  }
> --
> 2.7.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list