mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-27 17:40:43 +00: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
@ -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…
Reference in New Issue
Block a user