pixman doesn't support YUV format for destination 11/171011/1
authorBoram Park <boram1288.park@samsung.com>
Sun, 25 Feb 2018 23:25:10 +0000 (08:25 +0900)
committerBoram Park <boram1288.park@samsung.com>
Sun, 25 Feb 2018 23:25:10 +0000 (08:25 +0900)
Change-Id: I1c92e95346b170293cca19bb791f62219fe37a29

src/tdm_drm_pp.c

index 0a0b8d2..75dccc2 100644 (file)
@@ -198,6 +198,8 @@ _tdm_drm_pp_convert(tdm_drm_pp_buffer *buffer, tdm_info_pp *info)
        dst_format = _tdm_drm_pp_pixman_get_format(dst_info.format);
        GOTO_IF_FAIL(dst_format > 0, fail_convert);
 
+       GOTO_IF_FAIL(pixman_format_supported_destination(dst_format), fail_convert);
+
        if (src_info.format == TBM_FORMAT_YUV420) {
                if (dst_info.format == TBM_FORMAT_XRGB8888)
                        dst_format = PIXMAN_x8b8g8r8;