[igt-dev] [PATCH i-g-t v3 0/2] add support for passing yuv writeback output format
Abhinav Kumar
quic_abhinavk at quicinc.com
Thu Aug 10 20:23:38 UTC 2023
MSM display pipeline has support for writeback to handle YUV formats.
Currently the kms_writeback supports hard-codes the writeback output
format to DRM_FORMAT_XRGB8888. This series makes the necessary changes
in the lib and kms_writeback to allow passing DRM YUV formats to
kms_writeback.
The default kms_writeback shall still use only DRM_FORMAT_XRGB8888.
Additional formats can be passed using the command line.
Sample usage of this would be:
./kms_writeback -d -f <name of the DRM YUV fmt from igt_fb>
Currently this is supported only along with the --dump option because
the API which computes CRC needs to be extended to handle formats
which have more than one plane.
changes in v2:
- removed an unnecessary new line
- fixed petri's email address
changes in v3:
- drop the changes to igt_fb_get_fnv1a_crc()
- restrict the custom format to only the --dump option
Abhinav Kumar (2):
lib/igt_fb: add a helper to find drm_id from matching string
tests/kms_writeback: allow writeback to output custom format
lib/igt_fb.c | 28 ++++++++++++++++++++++++++++
lib/igt_fb.h | 3 +++
tests/kms_writeback.c | 18 +++++++++++++++---
3 files changed, 46 insertions(+), 3 deletions(-)
--
2.40.1
More information about the igt-dev
mailing list