Public paste
Undefined
By: Guest | Date: Jan 13 2010 18:19 | Format: None | Expires: never | Size: 572 B | Hits: 873

  1. diff --git a/drivers/gpu/drm/nouveau/nv50_graph.c b/drivers/gpu/drm/nouveau/nv50_graph.c
  2. index 56a9753..68948c9 100644
  3. --- a/drivers/gpu/drm/nouveau/nv50_graph.c
  4. +++ b/drivers/gpu/drm/nouveau/nv50_graph.c
  5. @@ -288,9 +288,9 @@ nv50_graph_unload_context(struct drm_device *dev)
  6.         nv_wr32(dev, 0x400824, nv_rd32(dev, 0x400824) | 0x20);
  7.         nv_wr32(dev, 0x400304, nv_rd32(dev, 0x400304) | 0x01);
  8.         nouveau_wait_for_idle(dev);
  9. +       nv_wr32(dev, NV50_PGRAPH_CTXCTL_CUR, inst);
  10.         nv_wr32(dev, 0x400500, fifo);
  11.  
  12. -       nv_wr32(dev, NV50_PGRAPH_CTXCTL_CUR, inst);
  13.         return 0;
  14.  }