drm-shim: Let the driver choose to overwrite the first render node.
[mesa.git] / src / etnaviv / drm / etnaviv_bo_cache.c
index 3b28c1477aaccd61278f652b48e8daa96fb05fb3..93893b52b23aefe49ba6ee769133c78eb0284ae1 100644 (file)
@@ -78,7 +78,7 @@ void etna_bo_cache_cleanup(struct etna_bo_cache *cache, time_t time)
                struct etna_bo_bucket *bucket = &cache->cache_bucket[i];
                struct etna_bo *bo;
 
-               while (!LIST_IS_EMPTY(&bucket->list)) {
+               while (!list_is_empty(&bucket->list)) {
                        bo = LIST_ENTRY(struct etna_bo, bucket->list.next, list);
 
                        /* keep things in cache for at least 1 second: */
@@ -125,7 +125,7 @@ static struct etna_bo *find_in_bucket(struct etna_bo_bucket *bucket, uint32_t fl
 
        pthread_mutex_lock(&etna_drm_table_lock);
 
-       if (LIST_IS_EMPTY(&bucket->list))
+       if (list_is_empty(&bucket->list))
                goto out_unlock;
 
        LIST_FOR_EACH_ENTRY_SAFE(bo, tmp, &bucket->list, list) {