Skip to content

Commit 01b15bd

Browse files
adaplasLinus Torvalds
authored andcommitted
nvidiafb: adjust flags to take advantage of new scroll method
The SCROLL_MOVE method has been optimized such that it is significantly faster than SCROLL_REDRAW. Adjust flags to indicate that blitting is preferred over rendering. Signed-off-by: Antonino Daplas <adaplas@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent bad07ff commit 01b15bd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/video/nvidia/nvidia.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,7 @@ static int nvidiafb_set_par(struct fb_info *info)
674674
info->fbops->fb_sync = nvidiafb_sync;
675675
info->pixmap.scan_align = 4;
676676
info->flags &= ~FBINFO_HWACCEL_DISABLED;
677+
info->flags |= FBINFO_READS_FAST;
677678
NVResetGraphics(info);
678679
} else {
679680
info->fbops->fb_imageblit = cfb_imageblit;
@@ -682,6 +683,7 @@ static int nvidiafb_set_par(struct fb_info *info)
682683
info->fbops->fb_sync = NULL;
683684
info->pixmap.scan_align = 1;
684685
info->flags |= FBINFO_HWACCEL_DISABLED;
686+
info->flags &= ~FBINFO_READS_FAST;
685687
}
686688

687689
par->cursor_reset = 1;

0 commit comments

Comments
 (0)