linux/drivers/video/console
Helge Deller a3f781a9d6 fbcon: Add option to enable legacy hardware acceleration
Add a config option CONFIG_FRAMEBUFFER_CONSOLE_LEGACY_ACCELERATION to
enable bitblt and fillrect hardware acceleration in the framebuffer
console. If disabled, such acceleration will not be used, even if it is
supported by the graphics hardware driver.

If you plan to use DRM as your main graphics output system, you should
disable this option since it will prevent compiling in code which isn't
used later on when DRM takes over.

For all other configurations, e.g. if none of your graphic cards support
DRM (yet), DRM isn't available for your architecture, or you can't be
sure that the graphic card in the target system will support DRM, you
most likely want to enable this option.

In the non-accelerated case (e.g. when DRM is used), the inlined
fb_scrollmode() function is hardcoded to return SCROLL_REDRAW and as such the
compiler is able to optimize much unneccesary code away.

In this v3 patch version I additionally changed the GETVYRES() and GETVXRES()
macros to take a pointer to the fbcon_display struct. This fixes the build when
console rotation is enabled and helps the compiler again to optimize out code.

Signed-off-by: Helge Deller <deller@gmx.de>
Cc: stable@vger.kernel.org # v5.10+
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20220202135531.92183-4-deller@gmx.de
2022-02-02 15:16:26 +01:00
..
dummycon.c console: Delete dummy con_font_set() and con_font_default() callback implementations 2020-11-16 16:31:09 +01:00
Kconfig fbcon: Add option to enable legacy hardware acceleration 2022-02-02 15:16:26 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mdacon.c vt: use newly defined CUR_* macros 2020-06-24 17:08:33 +02:00
newport_con.c TTY/Serial patches for 5.10-rc1 2020-10-14 16:05:52 -07:00
sticon.c parisc/sticon: fix reverse colors 2021-11-17 11:04:02 +01:00
sticore.c parisc/sticore: Avoid hard-coding built-in font charcount 2020-11-16 16:31:58 +01:00
vgacon.c Linux 5.16-rc5 2021-12-14 10:24:28 +01:00