Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/omap don't draw blanks by hand, use the blitter...



details:   https://anonhg.NetBSD.org/src/rev/61e796e610db
branches:  trunk
changeset: 784065:61e796e610db
user:      macallan <macallan%NetBSD.org@localhost>
date:      Thu Jan 17 01:10:52 2013 +0000

description:
don't draw blanks by hand, use the blitter instead

diffstat:

 sys/arch/arm/omap/omapfb.c |  15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r dbcd24b05e6f -r 61e796e610db sys/arch/arm/omap/omapfb.c
--- a/sys/arch/arm/omap/omapfb.c        Wed Jan 16 23:27:34 2013 +0000
+++ b/sys/arch/arm/omap/omapfb.c        Thu Jan 17 01:10:52 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: omapfb.c,v 1.12 2013/01/16 20:34:10 macallan Exp $     */
+/*     $NetBSD: omapfb.c,v 1.13 2013/01/17 01:10:52 macallan Exp $     */
 
 /*
  * Copyright (c) 2010 Michael Lorenz
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: omapfb.c,v 1.12 2013/01/16 20:34:10 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: omapfb.c,v 1.13 2013/01/17 01:10:52 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -801,6 +801,17 @@
        struct vcons_screen *scr = ri->ri_hw;
        struct omapfb_softc *sc = scr->scr_cookie;
 
+       if (c == 0x20) {
+               uint32_t fg, bg, ul; 
+               rasops_unpack_attr(attr, &fg, &bg, &ul);
+               omapfb_rectfill(sc,
+                   ri->ri_xorigin + ri->ri_font->fontwidth * col,
+                   ri->ri_yorigin + ri->ri_font->fontheight * row,
+                   ri->ri_font->fontwidth,
+                   ri->ri_font->fontheight,
+                   ri->ri_devcmap[bg]);
+               return;
+       }
        omapfb_wait_idle(sc);
        sc->sc_putchar(cookie, row, col, c, attr);      
 }



Home | Main Index | Thread Index | Old Index