aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2020-03-28 11:14:05 -0700
committerMarge Bot <[email protected]>2020-03-30 23:20:12 +0000
commitffd32266780a83695ae5dd8d36b73fe970cfe4dc (patch)
tree4840120f63caf377ac847f976ddc9b915e5d037e /src/gallium/auxiliary/util
parent356b93f1023649b48774f56c7ec127bb327e8272 (diff)
util: fix u_fifo_pop()
Seems like no one ever depended on it to actually return false when fifo is empty. Fixes: 6e61d062093 ("util: Add super simple fifo") Signed-off-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4366>
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r--src/gallium/auxiliary/util/u_fifo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_fifo.h b/src/gallium/auxiliary/util/u_fifo.h
index a7aad6179d9..b53a3ddd52d 100644
--- a/src/gallium/auxiliary/util/u_fifo.h
+++ b/src/gallium/auxiliary/util/u_fifo.h
@@ -80,7 +80,7 @@ u_fifo_pop(struct util_fifo *fifo, void **ptr)
*ptr = array[fifo->tail];
- ++fifo->num;
+ --fifo->num;
return TRUE;
}