drm/nv40/gr: rewrite/split context takedown functions
authorBen Skeggs <bskeggs@redhat.com>
Sun, 17 Jul 2011 23:56:36 +0000 (09:56 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Sun, 24 Jul 2011 23:42:18 +0000 (09:42 +1000)
commit12a30e267c162145df3c104d0f4aabff7bce56a5
treea2a27ca39bd22e73968f6df7e8fb164545611137
parent9717f3d953f294bf416258f6b1f2d9512babd337
drm/nv40/gr: rewrite/split context takedown functions

It's completely pointless to save the PGRAPH context when destroying a
channel, so don't bother.

This commit should also fix kernel.org bug 39422, where the DRM channel
state was incorrectly being saved because we left PGRAPH FIFO access
enabled while running the ctxprog.

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