diff options
author | Timothy Arceri <[email protected]> | 2019-10-28 10:03:21 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2019-10-28 11:24:38 +0000 |
commit | 40258fb8b83325bf208876babf779e7ea08a870c (patch) | |
tree | ce46b3e5d3d3b14d16f5f26427da0b42e93ece8e /src/gallium/drivers | |
parent | 255de06c5990797832678d7af01876a1afca5b50 (diff) |
util: remove LIST_ADD macro
Just use the inlined function directly. The macro was replaced with
the function in ebe304fa540f.
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/nouveau/nouveau_fence.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/nouveau/nouveau_mm.c | 6 | ||||
-rw-r--r-- | src/gallium/drivers/r600/radeon_vce.c | 6 | ||||
-rw-r--r-- | src/gallium/drivers/radeon/radeon_vce.c | 6 | ||||
-rw-r--r-- | src/gallium/drivers/svga/svga_resource_buffer_upload.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/svga/svga_screen_cache.c | 14 |
6 files changed, 18 insertions, 18 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_fence.c b/src/gallium/drivers/nouveau/nouveau_fence.c index 767e27f0719..ab0a0349a02 100644 --- a/src/gallium/drivers/nouveau/nouveau_fence.c +++ b/src/gallium/drivers/nouveau/nouveau_fence.c @@ -265,7 +265,7 @@ nouveau_fence_work(struct nouveau_fence *fence, return false; work->func = func; work->data = data; - LIST_ADD(&work->list, &fence->work); + list_add(&work->list, &fence->work); p_atomic_inc(&fence->work_count); if (fence->work_count > 64) nouveau_fence_kick(fence); diff --git a/src/gallium/drivers/nouveau/nouveau_mm.c b/src/gallium/drivers/nouveau/nouveau_mm.c index 90a9ea2d92d..39430bc0282 100644 --- a/src/gallium/drivers/nouveau/nouveau_mm.c +++ b/src/gallium/drivers/nouveau/nouveau_mm.c @@ -148,7 +148,7 @@ mm_slab_new(struct nouveau_mman *cache, int chunk_order) slab->order = chunk_order; slab->count = slab->free = size >> chunk_order; - LIST_ADD(&slab->head, &mm_bucket_by_order(cache, chunk_order)->free); + list_add(&slab->head, &mm_bucket_by_order(cache, chunk_order)->free); cache->allocated += size; @@ -190,7 +190,7 @@ nouveau_mm_allocate(struct nouveau_mman *cache, slab = LIST_ENTRY(struct mm_slab, bucket->free.next, head); LIST_DEL(&slab->head); - LIST_ADD(&slab->head, &bucket->used); + list_add(&slab->head, &bucket->used); } *offset = mm_slab_alloc(slab) << slab->order; @@ -203,7 +203,7 @@ nouveau_mm_allocate(struct nouveau_mman *cache, if (slab->free == 0) { LIST_DEL(&slab->head); - LIST_ADD(&slab->head, &bucket->full); + list_add(&slab->head, &bucket->full); } alloc->next = NULL; diff --git a/src/gallium/drivers/r600/radeon_vce.c b/src/gallium/drivers/r600/radeon_vce.c index b4e048d0dff..89ac8b276a6 100644 --- a/src/gallium/drivers/r600/radeon_vce.c +++ b/src/gallium/drivers/r600/radeon_vce.c @@ -132,12 +132,12 @@ static void sort_cpb(struct rvce_encoder *enc) if (l1) { LIST_DEL(&l1->list); - LIST_ADD(&l1->list, &enc->cpb_slots); + list_add(&l1->list, &enc->cpb_slots); } if (l0) { LIST_DEL(&l0->list); - LIST_ADD(&l0->list, &enc->cpb_slots); + list_add(&l0->list, &enc->cpb_slots); } } @@ -342,7 +342,7 @@ static void rvce_end_frame(struct pipe_video_codec *encoder, slot->pic_order_cnt = enc->pic.pic_order_cnt; if (!enc->pic.not_referenced) { LIST_DEL(&slot->list); - LIST_ADD(&slot->list, &enc->cpb_slots); + list_add(&slot->list, &enc->cpb_slots); } } diff --git a/src/gallium/drivers/radeon/radeon_vce.c b/src/gallium/drivers/radeon/radeon_vce.c index af46fa776a6..48012723b7e 100644 --- a/src/gallium/drivers/radeon/radeon_vce.c +++ b/src/gallium/drivers/radeon/radeon_vce.c @@ -126,12 +126,12 @@ static void sort_cpb(struct rvce_encoder *enc) if (l1) { LIST_DEL(&l1->list); - LIST_ADD(&l1->list, &enc->cpb_slots); + list_add(&l1->list, &enc->cpb_slots); } if (l0) { LIST_DEL(&l0->list); - LIST_ADD(&l0->list, &enc->cpb_slots); + list_add(&l0->list, &enc->cpb_slots); } } @@ -341,7 +341,7 @@ static void rvce_end_frame(struct pipe_video_codec *encoder, slot->pic_order_cnt = enc->pic.pic_order_cnt; if (!enc->pic.not_referenced) { LIST_DEL(&slot->list); - LIST_ADD(&slot->list, &enc->cpb_slots); + list_add(&slot->list, &enc->cpb_slots); } } diff --git a/src/gallium/drivers/svga/svga_resource_buffer_upload.c b/src/gallium/drivers/svga/svga_resource_buffer_upload.c index 58d841d34bd..9652f150d1f 100644 --- a/src/gallium/drivers/svga/svga_resource_buffer_upload.c +++ b/src/gallium/drivers/svga/svga_resource_buffer_upload.c @@ -322,7 +322,7 @@ svga_buffer_add_host_surface(struct svga_buffer *sbuf, bufsurf->key = *key; /* add the surface to the surface list */ - LIST_ADD(&bufsurf->list, &sbuf->surfaces); + list_add(&bufsurf->list, &sbuf->surfaces); /* Set the new bind flags for this buffer resource */ sbuf->bind_flags = bind_flags; diff --git a/src/gallium/drivers/svga/svga_screen_cache.c b/src/gallium/drivers/svga/svga_screen_cache.c index 195a1158558..6d77b55c4f4 100644 --- a/src/gallium/drivers/svga/svga_screen_cache.c +++ b/src/gallium/drivers/svga/svga_screen_cache.c @@ -139,7 +139,7 @@ svga_screen_cache_lookup(struct svga_screen *svgascreen, LIST_DEL(&entry->head); /* Add the cache entry (but not the surface!) to the empty list */ - LIST_ADD(&entry->head, &cache->empty); + list_add(&entry->head, &cache->empty); /* update the cache size */ surf_size = surface_size(&entry->key); @@ -194,7 +194,7 @@ svga_screen_cache_shrink(struct svga_screen *svgascreen, LIST_DEL(&entry->bucket_head); LIST_DEL(&entry->head); - LIST_ADD(&entry->head, &cache->empty); + list_add(&entry->head, &cache->empty); if (cache->total_size <= target_size) { /* all done */ @@ -294,9 +294,9 @@ svga_screen_cache_add(struct svga_screen *svgascreen, /* If we don't have gb objects, we don't need to invalidate. */ if (sws->have_gb_objects) - LIST_ADD(&entry->head, &cache->validated); + list_add(&entry->head, &cache->validated); else - LIST_ADD(&entry->head, &cache->invalidated); + list_add(&entry->head, &cache->invalidated); cache->total_size += surf_size; } @@ -343,11 +343,11 @@ svga_screen_cache_flush(struct svga_screen *svgascreen, sws->fence_reference(sws, &entry->fence, fence); /* Add entry to the unused list */ - LIST_ADD(&entry->head, &cache->unused); + list_add(&entry->head, &cache->unused); /* Add entry to the hash table bucket */ bucket = svga_screen_cache_bucket(&entry->key); - LIST_ADD(&entry->bucket_head, &cache->bucket[bucket]); + list_add(&entry->bucket_head, &cache->bucket[bucket]); } curr = next; @@ -386,7 +386,7 @@ svga_screen_cache_flush(struct svga_screen *svgascreen, } /* add the entry to the invalidated list */ - LIST_ADD(&entry->head, &cache->invalidated); + list_add(&entry->head, &cache->invalidated); } curr = next; |