Commit 659feb29 authored by Christian Gmeiner's avatar Christian Gmeiner

EGL_EXT_image_dma_buf_import: add UYVY format suppor

Signed-off-by: Christian Gmeiner's avatarChristian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Lionel Landwerlin's avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
parent e7b51582
......@@ -3066,6 +3066,8 @@ with profile.test_list.group_manager(
'ext_image_dma_buf_import-sample_p016', run_concurrent=False)
g(['ext_image_dma_buf_import-sample_yuv', '-fmt=YUYV'],
'ext_image_dma_buf_import-sample_yuyv', run_concurrent=False)
g(['ext_image_dma_buf_import-sample_yuv', '-fmt=UYVY'],
'ext_image_dma_buf_import-sample_uyvy', run_concurrent=False)
g(['ext_image_dma_buf_import-transcode-nv12-as-r8-gr88'],
'ext_image_dma_buf_import-transcode-nv12-as-r8-gr88',
run_concurrent=False)
......
......@@ -131,6 +131,16 @@ piglit_display(void)
90, 140, 110, 160,
50, 121, 70, 161,
90, 140, 110, 160,
}, uyvy[] = {
/* UYVY */
120, 50, 130, 70,
140, 89, 130, 110,
120, 50, 130, 70,
140, 89, 130, 110,
121, 50, 161, 70,
140, 90, 160, 110,
121, 50, 161, 70,
140, 90, 160, 110,
};
static unsigned char expected[4 * 4 * 4] = {
......@@ -188,6 +198,9 @@ piglit_display(void)
case DRM_FORMAT_YUYV:
t = yuyv;
break;
case DRM_FORMAT_UYVY:
t = uyvy;
break;
default:
return PIGLIT_SKIP;
}
......
......@@ -145,6 +145,7 @@ piglit_intel_buf_create(unsigned w, unsigned h, unsigned fourcc,
case DRM_FORMAT_GR88:
case DRM_FORMAT_RG88:
case DRM_FORMAT_YUYV:
case DRM_FORMAT_UYVY:
cpp = 2;
break;
case DRM_FORMAT_XRGB8888:
......@@ -281,6 +282,7 @@ piglit_gbm_buf_create(unsigned w, unsigned h, unsigned fourcc,
case DRM_FORMAT_GR88:
case DRM_FORMAT_RG88:
case DRM_FORMAT_YUYV:
case DRM_FORMAT_UYVY:
format = GBM_FORMAT_GR88;
cpp = 2;
src_stride = cpp * w;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment