util: remove LIST_IS_EMPTY macro
[mesa.git] / src / gallium / drivers / freedreno / freedreno_query_hw.c
index b37126dc0da90eb2c9566813d96259d82098eaee..f1d22328df8e9f4aed42539779960dabf708c5a8 100644 (file)
@@ -147,7 +147,7 @@ fd_hw_begin_query(struct fd_context *ctx, struct fd_query *q)
                resume_query(batch, hq, batch->draw);
 
        /* add to active list: */
-       assert(list_empty(&hq->list));
+       assert(list_is_empty(&hq->list));
        list_addtail(&hq->list, &ctx->hw_active_queries);
 
        return true;
@@ -184,10 +184,10 @@ fd_hw_get_query_result(struct fd_context *ctx, struct fd_query *q,
 
        DBG("%p: wait=%d, active=%d", q, wait, q->active);
 
-       if (LIST_IS_EMPTY(&hq->periods))
+       if (list_is_empty(&hq->periods))
                return true;
 
-       assert(LIST_IS_EMPTY(&hq->list));
+       assert(list_is_empty(&hq->list));
        assert(!hq->period);
 
        /* if !wait, then check the last sample (the one most likely to