summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
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/mesa/drivers
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/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_bufmgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_bufmgr.c b/src/mesa/drivers/dri/i965/brw_bufmgr.c
index eefa548552a..536fe36e5e4 100644
--- a/src/mesa/drivers/dri/i965/brw_bufmgr.c
+++ b/src/mesa/drivers/dri/i965/brw_bufmgr.c
@@ -531,7 +531,7 @@ bo_alloc_internal(struct brw_bufmgr *bufmgr,
/* Get a buffer out of the cache if available */
retry:
alloc_from_cache = false;
- if (bucket != NULL && !list_empty(&bucket->head)) {
+ if (bucket != NULL && !list_is_empty(&bucket->head)) {
if (busy && !zeroed) {
/* Allocate new render-target BOs from the tail (MRU)
* of the list, as it will likely be hot in the GPU