drm/nvc0/gr: no need to store context in graph_fini()
authorBen Skeggs <bskeggs@redhat.com>
Wed, 13 Apr 2011 02:55:36 +0000 (12:55 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 16 May 2011 00:49:26 +0000 (10:49 +1000)
PFIFO kickoff should have handled this for us.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvc0_graph.c

index dcb8d9a12120fd2da636ec14dbb108a6ce3e4b4c..c4b65fa7aaf1e4dc6bb8e59bdeac1951811cbdeb 100644 (file)
@@ -250,12 +250,6 @@ nvc0_graph_object_new(struct nouveau_channel *chan, int engine,
 static int
 nvc0_graph_fini(struct drm_device *dev, int engine)
 {
-       u32 inst = nv_rd32(dev, 0x409b00);
-       if (inst & 0x80000000) {
-               inst &= 0x0fffffff;
-               nvc0_graph_unload_context_to(dev, (u64)inst << 12);
-       }
-
        return 0;
 }