summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nv50/nv50_context.c
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2009-09-14 19:42:53 +0200
committerMaarten Maathuis <madman2003@gmail.com>2009-09-15 18:59:53 +0200
commitdb37279e0b3620c6be9de6dd96f0f4dac63bb48c (patch)
treecce9c9cb0a8d859e4795624145311105b37a7d7e /src/gallium/drivers/nv50/nv50_context.c
parent0469465c31371177d85ab7af103359500323c1f8 (diff)
nv50: use flush_notify to reduce number of relocs
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_context.c')
-rw-r--r--src/gallium/drivers/nv50/nv50_context.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/nv50_context.c b/src/gallium/drivers/nv50/nv50_context.c
index 6e8f4f9750..935de8af52 100644
--- a/src/gallium/drivers/nv50/nv50_context.c
+++ b/src/gallium/drivers/nv50/nv50_context.c
@@ -110,6 +110,9 @@ nv50_create(struct pipe_screen *pscreen, unsigned pctx_id)
nv50->pipe.is_texture_referenced = nv50_is_texture_referenced;
nv50->pipe.is_buffer_referenced = nv50_is_buffer_referenced;
+ screen->base.channel->user_private = nv50;
+ screen->base.channel->flush_notify = nv50_state_flush_notify;
+
nv50_init_surface_functions(nv50);
nv50_init_state_functions(nv50);
nv50_init_query_functions(nv50);