summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoram Park <boram1288.park@samsung.com>2018-02-26 08:25:10 +0900
committerBoram Park <boram1288.park@samsung.com>2018-02-26 08:25:10 +0900
commit15690f79424aaa61abf803e4ee4b1627ce13c5ed (patch)
tree66c7692978f8c89a0faeb9e5ba81b2965497092b
parentf0cd4dc56b88c08790e45c1582e00555df478cd3 (diff)
downloadlibtdm-drm-15690f79424aaa61abf803e4ee4b1627ce13c5ed.tar.gz
libtdm-drm-15690f79424aaa61abf803e4ee4b1627ce13c5ed.tar.bz2
libtdm-drm-15690f79424aaa61abf803e4ee4b1627ce13c5ed.zip
pixman doesn't support YUV format for destination
Change-Id: I1c92e95346b170293cca19bb791f62219fe37a29
-rw-r--r--src/tdm_drm_pp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tdm_drm_pp.c b/src/tdm_drm_pp.c
index 0a0b8d2..75dccc2 100644
--- a/src/tdm_drm_pp.c
+++ b/src/tdm_drm_pp.c
@@ -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;