nv30: fix inconsistent setting of push->user_priv
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 4 Sep 2013 06:06:05 +0000 (02:06 -0400)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Thu, 5 Sep 2013 18:46:56 +0000 (20:46 +0200)
It's set to &nv30->bufctx everywhere else.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "9.2" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nv30/nv30_context.c

index e872c027ae3354ec7ea64209e480bc2a5ccc4f35..acef493afad1c4f65665ad42b84319cefbdce01e 100644 (file)
@@ -208,7 +208,7 @@ nv30_context_create(struct pipe_screen *pscreen, void *priv)
    /*XXX: *cough* per-context pushbufs */
    push = screen->base.pushbuf;
    nv30->base.pushbuf = push;
-   nv30->base.pushbuf->user_priv = push->user_priv; /* hack at validate time */
+   nv30->base.pushbuf->user_priv = &nv30->bufctx; /* hack at validate time */
    nv30->base.pushbuf->rsvd_kick = 16; /* hack in screen before first space */
    nv30->base.pushbuf->kick_notify = nv30_context_kick_notify;