nv50: when destroying a channel make sure it's not still current on PFIFO
authorBen Skeggs <skeggsb@gmail.com>
Wed, 25 Jun 2008 06:45:41 +0000 (16:45 +1000)
committerMaarten Maathuis <madman2003@gmail.com>
Wed, 25 Jun 2008 07:55:19 +0000 (09:55 +0200)
commitbe7276281694145e7c947b91a1c8e6e347de666c
treeb5a2aca1d8562f0833b14180a63b25b2232e53d4
parent5a0164d1e1799b68b3131efd7b9fcaf20c578257
nv50: when destroying a channel make sure it's not still current on PFIFO

We won't get a PFIFO context switch when the same channel ID is recreated if
the hw still thinks the channel is already active, which causes fun issues.

Should allow X to be stopped and started without tearing down the entire
card state in lastclose().
shared-core/nv50_fifo.c