Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180489
b: refs/heads/master
c: a87ff62
h: refs/heads/master
i:
  180487: 5275db2
v: v3
  • Loading branch information
Maarten Maathuis authored and Ben Skeggs committed Feb 9, 2010
1 parent a034a5c commit bfc13f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a51a3bf50d41708388f51ce63d965c0e77726eab
refs/heads/master: a87ff62a80a6a65fc664cd410061910b8c52b896
9 changes: 6 additions & 3 deletions trunk/drivers/gpu/drm/nouveau/nv50_fifo.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,17 +317,20 @@ void
nv50_fifo_destroy_context(struct nouveau_channel *chan)
{
struct drm_device *dev = chan->dev;
struct nouveau_gpuobj_ref *ramfc = chan->ramfc;

NV_DEBUG(dev, "ch%d\n", chan->id);

nouveau_gpuobj_ref_del(dev, &chan->ramfc);
nouveau_gpuobj_ref_del(dev, &chan->cache);

/* This will ensure the channel is seen as disabled. */
chan->ramfc = NULL;
nv50_fifo_channel_disable(dev, chan->id, false);

/* Dummy channel, also used on ch 127 */
if (chan->id == 0)
nv50_fifo_channel_disable(dev, 127, false);

nouveau_gpuobj_ref_del(dev, &ramfc);
nouveau_gpuobj_ref_del(dev, &chan->cache);
}

int
Expand Down

0 comments on commit bfc13f2

Please sign in to comment.