]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: Use 16bpp by default for the fbdev buffer
authorMaxime Ripard <maxime.ripard@bootlin.com>
Wed, 6 Mar 2019 14:02:45 +0000 (15:02 +0100)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Thu, 7 Mar 2019 10:48:28 +0000 (11:48 +0100)
commit0916fcdf4c7c3b543cada8d096c4d8bff0d18fe7
tree5194d6b6ff687bd739cf6f0bce4d4a5b2d56ead2
parent7e0189400627add514949e60b3e2c0040563bee3
drm/vc4: Use 16bpp by default for the fbdev buffer

The preferred bpp for the fbdev emulation buffer has been 32 so far, which
means that by default we will allocate an 8MB buffer with a 1920x1080
resolution.

Worse this memory will be allocated from the CMA pool, and will never be
freed even if we don't use the fbdev emulation. Therefore, reducing it is a
big deal, and switching to 16bpp by default will gain us around 4MB at
1920x1080, while keeping decent color depth. And users still have the
option to switch to 32bpp using the kernel command line.

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190306140245.21973-1-maxime.ripard@bootlin.com
drivers/gpu/drm/vc4/vc4_drv.c