From: Marcin Koƛcielnicki Date: Mon, 14 Dec 2009 20:38:17 +0000 (+0000) Subject: drm/nv04: Fix NV04 set_operation software method. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=13c5443b515109f175bb9917c578a7ae973f6851;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git drm/nv04: Fix NV04 set_operation software method. Signed-off-by: Marcin Koƛcielnicki Signed-off-by: Maarten Maathuis Signed-off-by: Ben Skeggs --- 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; }