switch-coreboot/payloads
Julius Werner 9e8d262eb5 UPSTREAM: cbgfx: Use memset() for faster screen clearing if possible
cbgfx currently makes a separate function call (recomputing some values)
for every single pixel it draws. While we mostly don't care that much
about display speed, this can become an issue if you're trying to paint
the whole screen white on a lowly-clocked Cortex-A53. As a simple
solution for these extreme cases, we can build a fast path into
clear_screen() that just memset()s the whole framebuffer if the color
and pixel format allow it.

BUG=chrome-os-partner:54416
TEST=Screen drawing speed on Kevin visibly improves (from 2.5s to 3ms).

BUG=None
BRANCH=None
TEST=None

Change-Id: I22f032afbb86b96fa5a0cbbdce8526a905c67b58
Original-Signed-off-by: Julius Werner <jwerner@chromium.org>
Original-Reviewed-on: https://review.coreboot.org/15524
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/358591
Reviewed-by: Martin Roth <martinroth@chromium.org>
2016-07-07 01:09:21 -07:00
..
bayou codebase: Change makefile $(shell pwd) commands to $(CURDIR) 2016-03-11 18:48:06 +01:00
coreinfo coreinfo: Update Makefile 2016-04-26 20:08:55 +02:00
external UPSTREAM: tint: Fix tint and add Kconfig option 2016-06-28 17:17:08 -07:00
libpayload UPSTREAM: cbgfx: Use memset() for faster screen clearing if possible 2016-07-07 01:09:21 -07:00
nvramcui UPSTREAM: nvramcui: Update Makefile 2016-06-30 23:10:29 -07:00
Kconfig UPSTREAM: tint: Fix tint and add Kconfig option 2016-06-28 17:17:08 -07:00
Makefile.inc UPSTREAM: tint: Fix tint and add Kconfig option 2016-06-28 17:17:08 -07:00