[Mesa-stable] [PATCH] nv30: fix inconsistent setting of push->user_priv

Ilia Mirkin imirkin at alum.mit.edu
Tue Sep 3 23:06:05 PDT 2013


It's set to &nv30->bufctx everywhere else.

Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
Cc: "9.2" <mesa-stable at lists.freedesktop.org>
---
 src/gallium/drivers/nv30/nv30_context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/nv30/nv30_context.c b/src/gallium/drivers/nv30/nv30_context.c
index e872c02..acef493 100644
--- a/src/gallium/drivers/nv30/nv30_context.c
+++ b/src/gallium/drivers/nv30/nv30_context.c
@@ -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;
 
-- 
1.8.1.5



More information about the mesa-stable mailing list