Commit 013f4f73 authored by David S. Miller's avatar David S. Miller

[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: default avatarDavid S. Miller <davem@redhat.com>
parent beb31f62
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment