RPi4: temporarily limit framebuffer size to HD

RPi firmware allocates a 4k framebuffer in gpu mem when 4kp60 is
enabled which leads to H264 decoding failing because it's running
out of GPU memory.

This framebuffer isn't used/needed in LE at all, so limit it's size
to HD (which the firmware does in non-4kp60 setups) until the KMS driver
and the firmware support freeing the orphaned framebuffer.

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2021-06-20 23:22:49 +02:00
parent 903fd5e1f4
commit 540c98a090

View File

@ -6,3 +6,6 @@ dtoverlay=vc4-kms-v3d,cma-512
dtoverlay=rpivid-v4l2
disable_overscan=1
disable_fw_kms_setup=1
# temporarily limit framebuffer size to avoid gpu memory issues at 4kp60
max_framebuffer_width=1920
max_framebuffer_width=1080