summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_context.c
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2019-10-28 21:30:51 +1100
committerTimothy Arceri <[email protected]>2019-10-28 11:24:39 +0000
commit1909bc526dd0e51d49252a1fc1c2aab0a8a51fb5 (patch)
tree40397bc26a41f9d465ca73cff2fe2f1184a261c1 /src/mesa/state_tracker/st_context.c
parent7f106a2b5d0b27c1ce47a4b335c4cc8ae9cd460b (diff)
util: remove LIST_IS_EMPTY macro
Just use the inlined function directly. The new function was introduced in addcf410. Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_context.c')
-rw-r--r--src/mesa/state_tracker/st_context.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
index 418024d33fd..9f72a8ef871 100644
--- a/src/mesa/state_tracker/st_context.c
+++ b/src/mesa/state_tracker/st_context.c
@@ -353,7 +353,7 @@ free_zombie_sampler_views(struct st_context *st)
{
struct st_zombie_sampler_view_node *entry, *next;
- if (LIST_IS_EMPTY(&st->zombie_sampler_views.list.node)) {
+ if (list_is_empty(&st->zombie_sampler_views.list.node)) {
return;
}
@@ -369,7 +369,7 @@ free_zombie_sampler_views(struct st_context *st)
free(entry);
}
- assert(LIST_IS_EMPTY(&st->zombie_sampler_views.list.node));
+ assert(list_is_empty(&st->zombie_sampler_views.list.node));
simple_mtx_unlock(&st->zombie_sampler_views.mutex);
}
@@ -383,7 +383,7 @@ free_zombie_shaders(struct st_context *st)
{
struct st_zombie_shader_node *entry, *next;
- if (LIST_IS_EMPTY(&st->zombie_shaders.list.node)) {
+ if (list_is_empty(&st->zombie_shaders.list.node)) {
return;
}
@@ -418,7 +418,7 @@ free_zombie_shaders(struct st_context *st)
free(entry);
}
- assert(LIST_IS_EMPTY(&st->zombie_shaders.list.node));
+ assert(list_is_empty(&st->zombie_shaders.list.node));
simple_mtx_unlock(&st->zombie_shaders.mutex);
}