nvc0: set rsvd_kick correctly
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>
Wed, 26 Jun 2013 14:45:09 +0000 (16:45 +0200)
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>
Wed, 26 Jun 2013 14:50:08 +0000 (16:50 +0200)
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>
src/gallium/drivers/nvc0/nvc0_screen.c

index 97ce82cfc850e8182bdc2f962e5d4f9609c8360d..19f11cabc73271b8dc3510607f3d6b8f9ffef0dd 100644 (file)
@@ -568,6 +568,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;