diff options
author | Timothy Arceri <[email protected]> | 2019-10-28 21:30:51 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2019-10-28 11:24:39 +0000 |
commit | 1909bc526dd0e51d49252a1fc1c2aab0a8a51fb5 (patch) | |
tree | 40397bc26a41f9d465ca73cff2fe2f1184a261c1 /src/gallium/state_trackers/nine | |
parent | 7f106a2b5d0b27c1ce47a4b335c4cc8ae9cd460b (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/gallium/state_trackers/nine')
-rw-r--r-- | src/gallium/state_trackers/nine/basetexture9.c | 2 | ||||
-rw-r--r-- | src/gallium/state_trackers/nine/basetexture9.h | 4 | ||||
-rw-r--r-- | src/gallium/state_trackers/nine/buffer9.c | 2 | ||||
-rw-r--r-- | src/gallium/state_trackers/nine/buffer9.h | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/state_trackers/nine/basetexture9.c b/src/gallium/state_trackers/nine/basetexture9.c index 441a0817461..ba4deb4e3ad 100644 --- a/src/gallium/state_trackers/nine/basetexture9.c +++ b/src/gallium/state_trackers/nine/basetexture9.c @@ -122,7 +122,7 @@ NineBaseTexture9_SetLOD( struct NineBaseTexture9 *This, 0 : This->base.info.last_level; This->managed.lod = MIN2(LODNew, max_level); - if (This->managed.lod != old && This->bind_count && LIST_IS_EMPTY(&This->list)) + if (This->managed.lod != old && This->bind_count && list_is_empty(&This->list)) list_add(&This->list, &This->base.base.device->update_textures); return old; diff --git a/src/gallium/state_trackers/nine/basetexture9.h b/src/gallium/state_trackers/nine/basetexture9.h index 7c6f66907b3..70e8b934f56 100644 --- a/src/gallium/state_trackers/nine/basetexture9.h +++ b/src/gallium/state_trackers/nine/basetexture9.h @@ -139,7 +139,7 @@ NineBindTextureToDevice( struct NineDevice9 *device, struct NineBaseTexture9 *old = *slot; if (tex) { - if ((tex->managed.dirty | tex->dirty_mip) && LIST_IS_EMPTY(&tex->list)) + if ((tex->managed.dirty | tex->dirty_mip) && list_is_empty(&tex->list)) list_add(&tex->list, &device->update_textures); tex->bind_count++; @@ -163,7 +163,7 @@ NineBaseTexture9_Dump( struct NineBaseTexture9 *This ) { } #define BASETEX_REGISTER_UPDATE(t) do { \ if (((t)->managed.dirty | ((t)->dirty_mip)) && (t)->bind_count) \ - if (LIST_IS_EMPTY(&(t)->list)) \ + if (list_is_empty(&(t)->list)) \ list_add(&(t)->list, &(t)->base.base.device->update_textures); \ } while(0) diff --git a/src/gallium/state_trackers/nine/buffer9.c b/src/gallium/state_trackers/nine/buffer9.c index f93abaa5c84..629f33731ce 100644 --- a/src/gallium/state_trackers/nine/buffer9.c +++ b/src/gallium/state_trackers/nine/buffer9.c @@ -246,7 +246,7 @@ NineBuffer9_Lock( struct NineBuffer9 *This, /* Tests on Win: READONLY doesn't wait for the upload */ if (!(Flags & D3DLOCK_READONLY)) { if (!This->managed.dirty) { - assert(LIST_IS_EMPTY(&This->managed.list)); + assert(list_is_empty(&This->managed.list)); This->managed.dirty = TRUE; This->managed.dirty_box = box; if (p_atomic_read(&This->managed.pending_upload)) diff --git a/src/gallium/state_trackers/nine/buffer9.h b/src/gallium/state_trackers/nine/buffer9.h index 7ae3ea6cc07..1c142fcf64a 100644 --- a/src/gallium/state_trackers/nine/buffer9.h +++ b/src/gallium/state_trackers/nine/buffer9.h @@ -122,7 +122,7 @@ NineBindBufferToDevice( struct NineDevice9 *device, struct NineBuffer9 *old = *slot; if (buf) { - if ((buf->managed.dirty) && LIST_IS_EMPTY(&buf->managed.list)) + if ((buf->managed.dirty) && list_is_empty(&buf->managed.list)) list_add(&buf->managed.list, &device->update_buffers); buf->bind_count++; } @@ -140,7 +140,7 @@ NineBuffer9_SetDirty( struct NineBuffer9 *This ); #define BASEBUF_REGISTER_UPDATE(b) { \ if ((b)->managed.dirty && (b)->bind_count) \ - if (LIST_IS_EMPTY(&(b)->managed.list)) \ + if (list_is_empty(&(b)->managed.list)) \ list_add(&(b)->managed.list, &(b)->base.base.device->update_buffers); \ } |