aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/driver_ddebug
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2019-10-28 21:27:52 +1100
committerTimothy Arceri <[email protected]>2019-10-28 11:24:38 +0000
commit7f106a2b5d0b27c1ce47a4b335c4cc8ae9cd460b (patch)
tree1307edca18a23a59f1a50d2bcc41d054a7453676 /src/gallium/auxiliary/driver_ddebug
parentc578600489e35abb481816c87124b1dc6b279655 (diff)
util: rename list_empty() to list_is_empty()
This makes it clear that it's a boolean test and not an action (eg. "empty the list"). Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/driver_ddebug')
-rw-r--r--src/gallium/auxiliary/driver_ddebug/dd_context.c2
-rw-r--r--src/gallium/auxiliary/driver_ddebug/dd_draw.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/driver_ddebug/dd_context.c b/src/gallium/auxiliary/driver_ddebug/dd_context.c
index 311eca7c1ae..40da6cf41c7 100644
--- a/src/gallium/auxiliary/driver_ddebug/dd_context.c
+++ b/src/gallium/auxiliary/driver_ddebug/dd_context.c
@@ -623,7 +623,7 @@ dd_context_destroy(struct pipe_context *_pipe)
mtx_destroy(&dctx->mutex);
cnd_destroy(&dctx->cond);
- assert(list_empty(&dctx->records));
+ assert(list_is_empty(&dctx->records));
if (pipe->set_log_context) {
pipe->set_log_context(pipe, NULL);
diff --git a/src/gallium/auxiliary/driver_ddebug/dd_draw.c b/src/gallium/auxiliary/driver_ddebug/dd_draw.c
index 1d8e57767ed..b2ed5d5f13b 100644
--- a/src/gallium/auxiliary/driver_ddebug/dd_draw.c
+++ b/src/gallium/auxiliary/driver_ddebug/dd_draw.c
@@ -1103,7 +1103,7 @@ dd_thread_main(void *input)
if (dctx->api_stalled)
cnd_signal(&dctx->cond);
- if (list_empty(&records)) {
+ if (list_is_empty(&records)) {
if (dctx->kill_thread)
break;
@@ -1184,7 +1184,7 @@ dd_add_record(struct dd_context *dctx, struct dd_draw_record *record)
dctx->api_stalled = false;
}
- if (list_empty(&dctx->records))
+ if (list_is_empty(&dctx->records))
cnd_signal(&dctx->cond);
list_addtail(&record->list, &dctx->records);