diff options
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/hud/hud_context.c | 8 | ||||
-rw-r--r-- | src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c | 6 | ||||
-rw-r--r-- | src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c | 8 | ||||
-rw-r--r-- | src/gallium/auxiliary/pipebuffer/pb_cache.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/pipebuffer/pb_slab.c | 4 | ||||
-rw-r--r-- | src/gallium/auxiliary/util/u_debug_memory.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/util/u_dirty_surfaces.h | 2 |
8 files changed, 17 insertions, 17 deletions
diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c index 631529fd6ba..672ff062830 100644 --- a/src/gallium/auxiliary/hud/hud_context.c +++ b/src/gallium/auxiliary/hud/hud_context.c @@ -946,7 +946,7 @@ hud_pane_add_graph(struct hud_pane *pane, struct hud_graph *gr) gr->color[1] = colors[color][1]; gr->color[2] = colors[color][2]; gr->pane = pane; - LIST_ADDTAIL(&gr->head, &pane->graph_list); + list_addtail(&gr->head, &pane->graph_list); pane->num_graphs++; pane->next_color++; } @@ -1458,7 +1458,7 @@ hud_parse_env_var(struct hud_context *hud, struct pipe_screen *screen, height = 100; if (pane && pane->num_graphs) { - LIST_ADDTAIL(&pane->head, &hud->pane_list); + list_addtail(&pane->head, &hud->pane_list); pane = NULL; } break; @@ -1471,7 +1471,7 @@ hud_parse_env_var(struct hud_context *hud, struct pipe_screen *screen, height = 100; if (pane && pane->num_graphs) { - LIST_ADDTAIL(&pane->head, &hud->pane_list); + list_addtail(&pane->head, &hud->pane_list); pane = NULL; } @@ -1494,7 +1494,7 @@ hud_parse_env_var(struct hud_context *hud, struct pipe_screen *screen, if (pane) { if (pane->num_graphs) { - LIST_ADDTAIL(&pane->head, &hud->pane_list); + list_addtail(&pane->head, &hud->pane_list); } else { FREE(pane); diff --git a/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c b/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c index 770146a9b7b..b8b53fd8275 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c +++ b/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c @@ -279,7 +279,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; } @@ -309,7 +309,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)) { @@ -939,7 +939,7 @@ fenced_bufmgr_create_buffer(struct pb_manager *mgr, assert(fenced_buf->buffer || fenced_buf->data); - 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/auxiliary/pipebuffer/pb_bufmgr_debug.c b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c index 50bd5152452..a5d211bc6d4 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c +++ b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c @@ -421,7 +421,7 @@ pb_debug_manager_create_buffer(struct pb_manager *_mgr, (void) mtx_init(&buf->mutex, mtx_plain); mtx_lock(&mgr->mutex); - LIST_ADDTAIL(&buf->head, &mgr->list); + list_addtail(&buf->head, &mgr->list); mtx_unlock(&mgr->mutex); return &buf->base; diff --git a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c index 431f24b54c4..6535fb0fa02 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c +++ b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c @@ -205,11 +205,11 @@ pb_slab_buffer_destroy(struct pb_buffer *_buf) buf->mapCount = 0; LIST_DEL(list); - LIST_ADDTAIL(list, &slab->freeBuffers); + list_addtail(list, &slab->freeBuffers); slab->numFree++; if (slab->head.next == &slab->head) - LIST_ADDTAIL(&slab->head, &mgr->slabs); + list_addtail(&slab->head, &mgr->slabs); /* If the slab becomes totally empty, free it */ if (slab->numFree == slab->numBuffers) { @@ -350,13 +350,13 @@ pb_slab_create(struct pb_slab_manager *mgr) buf->start = i* mgr->bufSize; buf->mapCount = 0; cnd_init(&buf->event); - LIST_ADDTAIL(&buf->head, &slab->freeBuffers); + list_addtail(&buf->head, &slab->freeBuffers); slab->numFree++; buf++; } /* Add this slab to the list of partial slabs */ - LIST_ADDTAIL(&slab->head, &mgr->slabs); + list_addtail(&slab->head, &mgr->slabs); return PIPE_OK; diff --git a/src/gallium/auxiliary/pipebuffer/pb_cache.c b/src/gallium/auxiliary/pipebuffer/pb_cache.c index 95dab4d256c..cc1b1fbed00 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_cache.c +++ b/src/gallium/auxiliary/pipebuffer/pb_cache.c @@ -104,7 +104,7 @@ pb_cache_add_buffer(struct pb_cache_entry *entry) entry->start = os_time_get(); entry->end = entry->start + mgr->usecs; - LIST_ADDTAIL(&entry->head, cache); + list_addtail(&entry->head, cache); ++mgr->num_buffers; mgr->cache_size += buf->size; mtx_unlock(&mgr->mutex); diff --git a/src/gallium/auxiliary/pipebuffer/pb_slab.c b/src/gallium/auxiliary/pipebuffer/pb_slab.c index 060314b707c..5de35b47f64 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_slab.c +++ b/src/gallium/auxiliary/pipebuffer/pb_slab.c @@ -62,7 +62,7 @@ pb_slab_reclaim(struct pb_slabs *slabs, struct pb_slab_entry *entry) /* Add slab to the group's list if it isn't already linked. */ if (!slab->head.next) { struct pb_slab_group *group = &slabs->groups[entry->group_index]; - LIST_ADDTAIL(&slab->head, &group->slabs); + list_addtail(&slab->head, &group->slabs); } if (slab->num_free >= slab->num_entries) { @@ -163,7 +163,7 @@ void pb_slab_free(struct pb_slabs* slabs, struct pb_slab_entry *entry) { mtx_lock(&slabs->mutex); - LIST_ADDTAIL(&entry->head, &slabs->reclaim); + list_addtail(&entry->head, &slabs->reclaim); mtx_unlock(&slabs->mutex); } diff --git a/src/gallium/auxiliary/util/u_debug_memory.c b/src/gallium/auxiliary/util/u_debug_memory.c index 42e29dd6b2a..7f0ac026c8c 100644 --- a/src/gallium/auxiliary/util/u_debug_memory.c +++ b/src/gallium/auxiliary/util/u_debug_memory.c @@ -155,7 +155,7 @@ debug_malloc(const char *file, unsigned line, const char *function, ftr->magic = DEBUG_MEMORY_MAGIC; mtx_lock(&list_mutex); - LIST_ADDTAIL(&hdr->head, &list); + list_addtail(&hdr->head, &list); mtx_unlock(&list_mutex); return data_from_header(hdr); diff --git a/src/gallium/auxiliary/util/u_dirty_surfaces.h b/src/gallium/auxiliary/util/u_dirty_surfaces.h index c70c3317943..4e285c4639f 100644 --- a/src/gallium/auxiliary/util/u_dirty_surfaces.h +++ b/src/gallium/auxiliary/util/u_dirty_surfaces.h @@ -106,7 +106,7 @@ static inline void util_dirty_surface_set_dirty(struct util_dirty_surfaces *dss, struct util_dirty_surface *ds) { if(LIST_IS_EMPTY(&ds->dirty_list)) - LIST_ADDTAIL(&ds->dirty_list, &dss->dirty_list); + list_addtail(&ds->dirty_list, &dss->dirty_list); } static inline void |