From 013f4f730825b9ca0fd2a863af230ac415049a2f Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Thu, 26 Aug 2004 03:53:38 -0700 Subject: [PATCH] [SPARC64]: Fix copyarea bug and set default flags in ffb driver. - copyarea checking of src/dst y being equal was buggy. - set optimal FBINFO flags for this device. Signed-off-by: David S. Miller --- drivers/video/ffb.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/video/ffb.c b/drivers/video/ffb.c index 2b6247b096a33..839801bd8d51f 100644 --- a/drivers/video/ffb.c +++ b/drivers/video/ffb.c @@ -572,7 +572,7 @@ ffb_copyarea(struct fb_info *info, const struct fb_copyarea *area) unsigned long flags; if (area->dx != area->sx || - area->dy == area->dy) { + area->dy == area->sy) { cfb_copyarea(info, area); return; } @@ -1027,7 +1027,13 @@ static void ffb_init_one(int node, int parent) all->par.prom_node = node; all->par.prom_parent_node = parent; - all->info.flags = FBINFO_DEFAULT; + /* Don't mention copyarea, so SCROLL_REDRAW is always + * used. It is the fastest on this chip. + */ + all->info.flags = (FBINFO_DEFAULT | + /* FBINFO_HWACCEL_COPYAREA | */ + FBINFO_HWACCEL_FILLRECT | + FBINFO_HWACCEL_IMAGEBLIT); all->info.fbops = &ffb_ops; all->info.screen_base = (char *) all->par.physbase + FFB_DFB24_POFF; all->info.currcon = -1; -- 2.53.0