7466309c12
In commit "libweston: add struct weston_drm_format" struct weston_drm_format and its helper functions were added to libweston. Also, unit tests for this API have been added in commit "tests: add unit tests for struct weston_drm_format". Start to use this API in the DRM-backend, as it enhances the code by avoiding repetition and ensuring correctness. Signed-off-by: Scott Anderson <scott.anderson@collabora.com> Co-authored-by: Leandro Ribeiro <leandro.ribeiro@collabora.com> Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>