diff options
author | Rob Clark <[email protected]> | 2018-10-13 12:34:09 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2018-10-17 12:44:48 -0400 |
commit | cbf9fe50b5f848c6be380ab37cf034618c9a851e (patch) | |
tree | 0112594bfa31ce7375a0521c703f99ebf94fcda5 /src/gallium/drivers/freedreno | |
parent | 669dd229835122143ff49b0c921e69a3a31ed46b (diff) |
freedreno: fix off-by-one error in BEGIN_RING()
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_util.h | 2 |
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); } |