summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>2013-06-26 16:45:09 +0200
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>2013-06-26 16:52:07 +0200
commit4d07d52e279668c5ab71147ccee02f332806e5b6 (patch)
tree634454e042217cba8ba6a355c14e907de461e68d
parent18973c7f0ff022165347fef9f980394565785284 (diff)
nvc0: set rsvd_kick correctly
This prevents trampling beyond the end of the command stream during flushes. NOTE: This is a candidate for the stable branches. Reported-by: Christoph Bumiller <christoph.bumiller@speed.at> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com> (cherry picked from commit e72cc26518d8a60093ac497bf680c1f4ba614fa9)
-rw-r--r--src/gallium/drivers/nvc0/nvc0_screen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_screen.c b/src/gallium/drivers/nvc0/nvc0_screen.c
index 3a78aadd81..bed033671b 100644
--- a/src/gallium/drivers/nvc0/nvc0_screen.c
+++ b/src/gallium/drivers/nvc0/nvc0_screen.c
@@ -430,6 +430,7 @@ nvc0_screen_create(struct nouveau_device *dev)
chan = screen->base.channel;
push = screen->base.pushbuf;
push->user_priv = screen;
+ push->rsvd_kick = 5;
screen->base.vidmem_bindings |= PIPE_BIND_CONSTANT_BUFFER |
PIPE_BIND_VERTEX_BUFFER | PIPE_BIND_INDEX_BUFFER;