summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Bennett <sb476@cam.ac.uk>2008-07-29 02:32:13 +0100
committerStuart Bennett <sb476@cam.ac.uk>2008-07-29 02:32:13 +0100
commit6b903f5edfbba19980a5518df9a89643378516d4 (patch)
tree8eb2da75a544eea37d09d25a148038488c9c42ef
parent591f6bcba35e482280299eef91d57b23a69106d1 (diff)
nouveau: fix nv04 fifo context save to save reg contents, not reg offset
clearly the function had never been used :)
-rw-r--r--shared-core/nv04_fifo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared-core/nv04_fifo.c b/shared-core/nv04_fifo.c
index 230c8e72..88186fe3 100644
--- a/shared-core/nv04_fifo.c
+++ b/shared-core/nv04_fifo.c
@@ -122,8 +122,8 @@ nv04_fifo_save_context(struct nouveau_channel *chan)
struct drm_nouveau_private *dev_priv = dev->dev_private;
uint32_t tmp;
- RAMFC_WR(DMA_PUT, NV04_PFIFO_CACHE1_DMA_PUT);
- RAMFC_WR(DMA_GET, NV04_PFIFO_CACHE1_DMA_GET);
+ RAMFC_WR(DMA_PUT, NV_READ(NV04_PFIFO_CACHE1_DMA_PUT));
+ RAMFC_WR(DMA_GET, NV_READ(NV04_PFIFO_CACHE1_DMA_GET));
tmp = NV_READ(NV04_PFIFO_CACHE1_DMA_DCOUNT) << 16;
tmp |= NV_READ(NV04_PFIFO_CACHE1_DMA_INSTANCE);