summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorMarcin Kościelnicki <koriakin@0x04.net>2009-12-14 20:38:17 +0000
committerBen Skeggs <bskeggs@redhat.com>2009-12-16 17:05:13 +1000
commit13c5443b515109f175bb9917c578a7ae973f6851 (patch)
treee715c913b7f8ba4b9889855468788e8ced29ce4a /drivers/gpu
parent37383650e4f47aef633055e3f62e87a44d83312d (diff)
downloadblackbird-op-linux-13c5443b515109f175bb9917c578a7ae973f6851.tar.gz
blackbird-op-linux-13c5443b515109f175bb9917c578a7ae973f6851.zip
drm/nv04: Fix NV04 set_operation software method.
Signed-off-by: Marcin Kościelnicki <koriakin@0x04.net> Signed-off-by: Maarten Maathuis <madman2003@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/nouveau/nv04_graph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nv04_graph.c b/drivers/gpu/drm/nouveau/nv04_graph.c
index 396ee92118f6..d561d773c0f4 100644
--- a/drivers/gpu/drm/nouveau/nv04_graph.c
+++ b/drivers/gpu/drm/nouveau/nv04_graph.c
@@ -543,7 +543,7 @@ nv04_graph_mthd_set_operation(struct nouveau_channel *chan, int grclass,
nv_wi32(dev, instance, tmp);
nv_wr32(dev, NV04_PGRAPH_CTX_SWITCH1, tmp);
- nv_wr32(dev, NV04_PGRAPH_CTX_CACHE1 + subc, tmp);
+ nv_wr32(dev, NV04_PGRAPH_CTX_CACHE1 + (subc<<2), tmp);
return 0;
}
OpenPOWER on IntegriCloud