aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2019-10-28 09:58:31 +1100
committerTimothy Arceri <[email protected]>2019-10-28 11:24:38 +0000
commit255de06c5990797832678d7af01876a1afca5b50 (patch)
tree3e17df349ea8b38c0acb4ac570a39c833858b47b /src/gallium/winsys
parent7ae1be102877c2623d16ff72a2ef198de6c301fe (diff)
util: remove LIST_ADDTAIL 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/winsys')
-rw-r--r--src/gallium/winsys/amdgpu/drm/amdgpu_bo.c4
-rw-r--r--src/gallium/winsys/radeon/drm/radeon_drm_bo.c2
-rw-r--r--src/gallium/winsys/svga/drm/pb_buffer_simple_fenced.c6
-rw-r--r--src/gallium/winsys/svga/drm/vmw_fence.c2
-rw-r--r--src/gallium/winsys/virgl/common/virgl_resource_cache.c2
5 files changed, 8 insertions, 8 deletions
diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
index edef12ccf23..537199c08fc 100644
--- a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
+++ b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
@@ -414,7 +414,7 @@ static void amdgpu_add_buffer_to_global_list(struct amdgpu_winsys_bo *bo)
if (ws->debug_all_bos) {
simple_mtx_lock(&ws->global_bo_list_lock);
- LIST_ADDTAIL(&bo->u.real.global_list_item, &ws->global_bo_list);
+ list_addtail(&bo->u.real.global_list_item, &ws->global_bo_list);
ws->num_buffers++;
simple_mtx_unlock(&ws->global_bo_list_lock);
}
@@ -692,7 +692,7 @@ struct pb_slab *amdgpu_bo_slab_alloc(void *priv, unsigned heap,
assert(bo->u.slab.real->bo);
}
- LIST_ADDTAIL(&bo->u.slab.entry.head, &slab->base.free);
+ list_addtail(&bo->u.slab.entry.head, &slab->base.free);
}
return &slab->base;
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
index 5fb00f13dfb..a0a229ccb1b 100644
--- a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
+++ b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
@@ -815,7 +815,7 @@ struct pb_slab *radeon_bo_slab_alloc(void *priv, unsigned heap,
bo->u.slab.entry.group_index = group_index;
bo->u.slab.real = slab->buffer;
- LIST_ADDTAIL(&bo->u.slab.entry.head, &slab->base.free);
+ list_addtail(&bo->u.slab.entry.head, &slab->base.free);
}
return &slab->base;
diff --git a/src/gallium/winsys/svga/drm/pb_buffer_simple_fenced.c b/src/gallium/winsys/svga/drm/pb_buffer_simple_fenced.c
index 9ab9fd1f2cc..d7a4834ba9b 100644
--- a/src/gallium/winsys/svga/drm/pb_buffer_simple_fenced.c
+++ b/src/gallium/winsys/svga/drm/pb_buffer_simple_fenced.c
@@ -242,7 +242,7 @@ fenced_buffer_add_locked(struct fenced_manager *fenced_mgr,
LIST_DEL(&fenced_buf->head);
assert(fenced_mgr->num_unfenced);
--fenced_mgr->num_unfenced;
- LIST_ADDTAIL(&fenced_buf->head, &fenced_mgr->fenced);
+ list_addtail(&fenced_buf->head, &fenced_mgr->fenced);
++fenced_mgr->num_fenced;
}
@@ -272,7 +272,7 @@ fenced_buffer_remove_locked(struct fenced_manager *fenced_mgr,
assert(fenced_mgr->num_fenced);
--fenced_mgr->num_fenced;
- LIST_ADDTAIL(&fenced_buf->head, &fenced_mgr->unfenced);
+ list_addtail(&fenced_buf->head, &fenced_mgr->unfenced);
++fenced_mgr->num_unfenced;
if (p_atomic_dec_zero(&fenced_buf->base.reference.count)) {
@@ -756,7 +756,7 @@ fenced_bufmgr_create_buffer(struct pb_manager *mgr,
assert(fenced_buf->buffer);
- LIST_ADDTAIL(&fenced_buf->head, &fenced_mgr->unfenced);
+ list_addtail(&fenced_buf->head, &fenced_mgr->unfenced);
++fenced_mgr->num_unfenced;
mtx_unlock(&fenced_mgr->mutex);
diff --git a/src/gallium/winsys/svga/drm/vmw_fence.c b/src/gallium/winsys/svga/drm/vmw_fence.c
index 9f5c5dbbd0a..593be9c797b 100644
--- a/src/gallium/winsys/svga/drm/vmw_fence.c
+++ b/src/gallium/winsys/svga/drm/vmw_fence.c
@@ -218,7 +218,7 @@ vmw_fence_create(struct pb_fence_ops *fence_ops, uint32_t handle,
list_inithead(&fence->ops_list);
} else {
p_atomic_set(&fence->signalled, 0);
- LIST_ADDTAIL(&fence->ops_list, &ops->not_signaled);
+ list_addtail(&fence->ops_list, &ops->not_signaled);
}
mtx_unlock(&ops->mutex);
diff --git a/src/gallium/winsys/virgl/common/virgl_resource_cache.c b/src/gallium/winsys/virgl/common/virgl_resource_cache.c
index a022e202f68..c78cfb4f9ef 100644
--- a/src/gallium/winsys/virgl/common/virgl_resource_cache.c
+++ b/src/gallium/winsys/virgl/common/virgl_resource_cache.c
@@ -91,7 +91,7 @@ virgl_resource_cache_add(struct virgl_resource_cache *cache,
entry->timeout_start = now;
entry->timeout_end = entry->timeout_start + cache->timeout_usecs;
- LIST_ADDTAIL(&entry->head, &cache->resources);
+ list_addtail(&entry->head, &cache->resources);
}
struct virgl_resource_cache_entry *