drm/nv04: Fix NV04 set_operation software method.
authorMarcin Kościelnicki <koriakin@0x04.net>
Mon, 14 Dec 2009 20:38:17 +0000 (20:38 +0000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 16 Dec 2009 07:05:13 +0000 (17:05 +1000)
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>
drivers/gpu/drm/nouveau/nv04_graph.c

index 396ee92..d561d77 100644 (file)
@@ -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;
 }