diff options
author | Boram Park <boram1288.park@samsung.com> | 2018-02-24 11:57:20 +0900 |
---|---|---|
committer | Boram Park <boram1288.park@samsung.com> | 2018-02-24 11:57:20 +0900 |
commit | 98561783a677eaab703964a7bd59101c06983fcc (patch) | |
tree | 66c7692978f8c89a0faeb9e5ba81b2965497092b | |
parent | b699ecee3726d0e0133be3870f2dee9b0088e8c2 (diff) | |
download | libtdm-drm-sandbox/boram1288/devel.tar.gz libtdm-drm-sandbox/boram1288/devel.tar.bz2 libtdm-drm-sandbox/boram1288/devel.zip |
pixman doesn't support YUV format for destinationsandbox/boram1288/devel
Change-Id: Ie1dae8c9b95a782a8eb29ff776afcdcb75577132
-rw-r--r-- | src/tdm_drm_pp.c | 2 |
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; |