aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gallium/drivers/freedreno/freedreno_util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_util.h b/src/gallium/drivers/freedreno/freedreno_util.h
index 30e3c6a735f..6b9da675300 100644
--- a/src/gallium/drivers/freedreno/freedreno_util.h
+++ b/src/gallium/drivers/freedreno/freedreno_util.h
@@ -274,7 +274,7 @@ OUT_RB(struct fd_ringbuffer *ring, struct fd_ringbuffer *target)
static inline void BEGIN_RING(struct fd_ringbuffer *ring, uint32_t ndwords)
{
- if (ring->cur + ndwords >= ring->end)
+ if (ring->cur + ndwords > ring->end)
fd_ringbuffer_grow(ring, ndwords);
}