coreboot-kgpe-d16/payloads/libpayload/drivers
Yu-Ping Wu e5824ff2a9 libpayload: cbgfx: Clear screen by memcpy
Instead of setting each pixel in the framebuffer, use memcpy() to clear
screen faster. As this method should be fast enough, remove the fast
path using memset().

The speed of clear_screen() on brya (x_resolution = 1920,
bytes_per_line = 7680):

- Using memset(): 15ms
- Setting each pixel: 25ms
- Using memcpy(): 14ms

Also remove set_pixel_raw() since it's now used in only one place.

BUG=none
TEST=emerge-brya libpayload
TEST=Saw developer screen on brya
BRANCH=none

Change-Id: I5f08fb50faab48d3db6b61ae022af3226914f72b
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/58128
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
2021-10-07 14:11:56 +00:00
..
i8042 libpayload: i8042: Enable keyboard translation by default on exit 2021-05-03 15:55:52 +00:00
serial payloads: Drop unneeded empty lines 2020-09-21 16:20:57 +00:00
storage libpayload: Mark Intel 300 series AHCI as tested 2021-08-12 17:57:35 +00:00
timer payloads/libpayload: add MTK_TIMER_V2 config 2021-08-09 01:53:20 +00:00
udc payloads: Drop unneeded empty lines 2020-09-21 16:20:57 +00:00
usb libpayload/usb: Fix printf format string mismatches in debug messages 2020-11-22 22:34:52 +00:00
video libpayload: cbgfx: Clear screen by memcpy 2021-10-07 14:11:56 +00:00
Makefile.inc libpayload/storage: Add NVMe driver 2021-04-07 10:58:04 +00:00
cbmem_console.c libpayload: Cache physical cbmem console address 2020-08-24 09:12:47 +00:00
hid.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
mouse_cursor.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
nvram.c payloads: Drop unneeded empty lines 2020-09-21 16:20:57 +00:00
options.c libpayload: use PRIu64 type to print u64 2020-09-30 10:16:44 +00:00
pci.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
speaker.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00