]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - drivers/video/via/accel.c
viafb: use proper register for colour when doing fill ops
[~shefty/rdma-dev.git] / drivers / video / via / accel.c
index e44893ea590d9b1b2194a621d567b38b78a70364..c2f4e6e166f11508b61a46236a68fa61f66ada4f 100644 (file)
@@ -283,11 +283,12 @@ static int hw_bitblt_2(void __iomem *engine, u8 op, u32 width, u32 height,
                writel(tmp, engine + 0x1C);
        }
 
-       if (op != VIA_BITBLT_COLOR)
+       if (op == VIA_BITBLT_FILL) {
+               writel(fg_color, engine + 0x58);
+       } else if (op == VIA_BITBLT_MONO) {
                writel(fg_color, engine + 0x4C);
-
-       if (op == VIA_BITBLT_MONO)
                writel(bg_color, engine + 0x50);
+       }
 
        if (op == VIA_BITBLT_FILL)
                ge_cmd |= fill_rop << 24 | 0x00002000 | 0x00000001;