OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
669dd22
)
freedreno: fix off-by-one error in BEGIN_RING()
author
Rob Clark
<robdclark@gmail.com>
Sat, 13 Oct 2018 16:34:09 +0000
(12:34 -0400)
committer
Rob Clark
<robdclark@gmail.com>
Wed, 17 Oct 2018 16:44:48 +0000
(12:44 -0400)
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/freedreno_util.h
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/freedreno/freedreno_util.h
b/src/gallium/drivers/freedreno/freedreno_util.h
index
30e3c6a
..
6b9da67
100644
(file)
--- 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);
}