From: Ben Skeggs Date: Wed, 13 Apr 2011 08:33:15 +0000 (+1000) Subject: drm/nv40/gr: oops, fix random bits getting set in engine obj X-Git-Tag: v3.0~329^2~48^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3acf67f66e40633c8235d126bf3a7e59d27c6107;p=platform%2Fkernel%2Flinux-amlogic.git drm/nv40/gr: oops, fix random bits getting set in engine obj Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/nv40_graph.c b/drivers/gpu/drm/nouveau/nv40_graph.c index 638c887..5beb01b 100644 --- a/drivers/gpu/drm/nouveau/nv40_graph.c +++ b/drivers/gpu/drm/nouveau/nv40_graph.c @@ -196,7 +196,9 @@ nv40_graph_object_new(struct nouveau_channel *chan, int engine, nv_wo32(obj, 0x00, class); nv_wo32(obj, 0x04, 0x00000000); -#ifdef __BIG_ENDIAN +#ifndef __BIG_ENDIAN + nv_wo32(obj, 0x08, 0x00000000); +#else nv_wo32(obj, 0x08, 0x01000000); #endif nv_wo32(obj, 0x0c, 0x00000000);