aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/nv30/nv30_screen.c
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2015-11-04 22:42:41 -0500
committerIlia Mirkin <[email protected]>2015-11-04 22:43:56 -0500
commitbb73fc4cb82c1abdf47aa373c78c2a85fe29b3ec (patch)
treef46c8e66b45992f14867600d532026a71d286c55 /src/gallium/drivers/nouveau/nv30/nv30_screen.c
parent6d3a24bce80a32063aedfe568efd5532aea4c875 (diff)
nouveau: relax fence emit space assert
We also have the "reserved for kick" space available. Some of my earlier changes can probably be removed, but this is a quick fix for some of the rarer fallout. Signed-off-by: Ilia Mirkin <[email protected]> Cc: <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/nv30/nv30_screen.c')
-rw-r--r--src/gallium/drivers/nouveau/nv30/nv30_screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nv30/nv30_screen.c b/src/gallium/drivers/nouveau/nv30/nv30_screen.c
index bdecb0a32b3..794a0898eaf 100644
--- a/src/gallium/drivers/nouveau/nv30/nv30_screen.c
+++ b/src/gallium/drivers/nouveau/nv30/nv30_screen.c
@@ -353,7 +353,7 @@ nv30_screen_fence_emit(struct pipe_screen *pscreen, uint32_t *sequence)
*sequence = ++screen->base.fence.sequence;
- assert(PUSH_AVAIL(push) >= 3);
+ assert(PUSH_AVAIL(push) + push->rsvd_kick >= 3);
PUSH_DATA (push, NV30_3D_FENCE_OFFSET |
(2 /* size */ << 18) | (7 /* subchan */ << 13));
PUSH_DATA (push, 0);