Mesa (refs/tags/good-2): nv*0_context: hook up the screen and context client
Emil Velikov
evelikov at kemper.freedesktop.org
Mon Sep 1 00:17:34 UTC 2014
Module: Mesa
Branch: refs/tags/good-2
Commit: d78851f427846148e63a052837f622f073d45f4e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d78851f427846148e63a052837f622f073d45f4e
Author: Emil Velikov <emil.l.velikov at gmail.com>
Date: Thu Jun 13 01:06:03 2013 +0100
nv*0_context: hook up the screen and context client
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
src/gallium/drivers/nv50/nv50_context.c | 1 +
src/gallium/drivers/nvc0/nvc0_context.c | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/nv50/nv50_context.c b/src/gallium/drivers/nv50/nv50_context.c
index 3d8446f..ab8b669 100644
--- a/src/gallium/drivers/nv50/nv50_context.c
+++ b/src/gallium/drivers/nv50/nv50_context.c
@@ -133,6 +133,7 @@ nv50_create(struct pipe_screen *pscreen, void *priv)
goto out_err;
nv50->base.pushbuf = screen->base.pushbuf;
+ nv50->base.client = screen->base.client;
ret = nouveau_bufctx_new(screen->base.client, NV50_BIND_COUNT,
&nv50->bufctx_3d);
diff --git a/src/gallium/drivers/nvc0/nvc0_context.c b/src/gallium/drivers/nvc0/nvc0_context.c
index ec1950c..a4f77d7 100644
--- a/src/gallium/drivers/nvc0/nvc0_context.c
+++ b/src/gallium/drivers/nvc0/nvc0_context.c
@@ -134,7 +134,7 @@ nvc0_default_kick_notify(struct nouveau_pushbuf *push)
static void
nvc0_context_get_sample_position(struct pipe_context *, unsigned, unsigned,
- float *);
+ float *);
struct pipe_context *
nvc0_create(struct pipe_screen *pscreen, void *priv)
@@ -154,6 +154,7 @@ nvc0_create(struct pipe_screen *pscreen, void *priv)
goto out_err;
nvc0->base.pushbuf = screen->base.pushbuf;
+ nvc0->base.client = screen->base.client;
ret = nouveau_bufctx_new(screen->base.client, 2, &nvc0->bufctx);
if (!ret)
More information about the mesa-commit
mailing list