summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoram Park <boram1288.park@samsung.com>2018-02-24 11:57:20 +0900
committerBoram Park <boram1288.park@samsung.com>2018-02-24 11:57:20 +0900
commit98561783a677eaab703964a7bd59101c06983fcc (patch)
tree66c7692978f8c89a0faeb9e5ba81b2965497092b
parentb699ecee3726d0e0133be3870f2dee9b0088e8c2 (diff)
downloadlibtdm-drm-98561783a677eaab703964a7bd59101c06983fcc.tar.gz
libtdm-drm-98561783a677eaab703964a7bd59101c06983fcc.tar.bz2
libtdm-drm-98561783a677eaab703964a7bd59101c06983fcc.zip
pixman doesn't support YUV format for destinationsandbox/boram1288/devel
Change-Id: Ie1dae8c9b95a782a8eb29ff776afcdcb75577132
-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;