hw/display: factor out the scanout blob to fb conversion
authorAlex Bennée <alex.bennee@linaro.org>
Mon, 11 Nov 2024 23:00:39 +0000 (23:00 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 18 Nov 2024 15:54:43 +0000 (15:54 +0000)
commitc873a6569ff08317578c9810ca049f2c70e3ad99
treef0e56d807dee2479bebd3f1e73b5790ed387c80f
parentcca4fc6743d84db4383a64548ada1edc3d80c537
hw/display: factor out the scanout blob to fb conversion

There are two identical sequences of a code doing the same thing that
raise warnings with Coverity. Before fixing those issues lets factor
out the common code into a helper function we can share.

Reviewed-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Tested-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20241111230040.68470-2-alex.bennee@linaro.org>
hw/display/virtio-gpu-virgl.c
hw/display/virtio-gpu.c
include/hw/virtio/virtio-gpu.h