mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
freedreno: fix off-by-one error in BEGIN_RING()
Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
669dd22983
commit
cbf9fe50b5
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue