nv50: initialize kick_notify callback in nv50_create 00/6500/1
authorBryan Cain <bryancain3@gmail.com>
Tue, 7 May 2013 21:57:17 +0000 (16:57 -0500)
committerBryan Cain <bryancain3@gmail.com>
Tue, 7 May 2013 22:01:59 +0000 (17:01 -0500)
Fixes infinite loop on startup in Portal and Left 4 Dead 2.

NOTE: This is a candidate for the 9.0 and 9.1 branches.

src/gallium/drivers/nv50/nv50_context.c

index 16697a0..5781c4b 100644 (file)
@@ -242,6 +242,7 @@ nv50_create(struct pipe_screen *pscreen, void *priv)
       screen->cur_ctx = nv50;
       nouveau_pushbuf_bufctx(screen->base.pushbuf, nv50->bufctx);
    }
+   nv50->base.pushbuf->kick_notify = nv50_default_kick_notify;
 
    nv50_init_query_functions(nv50);
    nv50_init_surface_functions(nv50);