fbdev: Speed up scrolling of tdfxfb
PATCH 1/5 fbdev: Speed up scrolling of tdfxfb
This patch speeds up scrolling of tdfxfb by maximizing var->yres_virtual so tdfxfb uses SCROLL_PAN_MOVE instead of SCROLL_REDRAW. This is true whether CONFIG_FB_3DFX_ACCEL is set or not. This problem was reported by Paolo Ornati <[email protected]> who also made substantial contributions to solve this problem.
This patch also fixes compile errors when CONFIG_FB_3DFX_ACCEL is false.
Signed-off-by Antonino Daplas <[email protected]>
---
Makefile | 5 ++--- tdfxfb.c | 47 +++++++++++++++++++++++++++++++---------------- 2 files changed, 33 insertions(+), 19 deletions(-)
drivers/video/Makefile +2 -3
@@ -34,10 +34,9 @@ obj-$(CONFIG_FB_CYBER) += cyb obj-$(CONFIG_FB_CYBER2000) += cyber2000fb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o obj-$(CONFIG_FB_GBE) += gbefb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o obj-$(CONFIG_FB_SGIVW) += sgivwfb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o -obj-$(CONFIG_FB_3DFX) += tdfxfb.o tdfxfb_lib.o -tdfxfb_lib-y := cfbimgblt.o +obj-$(CONFIG_FB_3DFX) += tdfxfb.o cfbimgblt.o ifneq ($(CONFIG_FB_3DFX_ACCEL),y) -tdfxfb_lib-y += cfbfillrect.o cfbcopyarea.o +obj-$(CONFIG_FB_3DFX) += cfbfillrect.o cfbcopyarea.o endif obj-$(CONFIG_FB_MAC) += macfb.o macmodes.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o obj-$(CONFIG_FB_HP300) += hpfb.o cfbfillrect.o cfbimgblt.o
drivers/video/tdfxfb.c +31 -16
102 lines not on this page · raw message