Commit e7b51582 authored by Christian Gmeiner's avatar Christian Gmeiner

EGL_EXT_image_dma_buf_import: add YUYV format support

Signed-off-by: Christian Gmeiner's avatarChristian Gmeiner <christian.gmeiner@gmail.com>
Lionel Landwerlin <lionel.g.landwerlin@intel.com>
parent 48fabb3e
......@@ -3064,6 +3064,8 @@ with profile.test_list.group_manager(
'ext_image_dma_buf_import-sample_p012', run_concurrent=False)
g(['ext_image_dma_buf_import-sample_yuv', '-fmt=P016'],
'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-transcode-nv12-as-r8-gr88'],
'ext_image_dma_buf_import-transcode-nv12-as-r8-gr88',
run_concurrent=False)
......
......@@ -121,6 +121,16 @@ piglit_display(void)
160, 127, 70, 64,
160, 133, 90, 128,
160, 140, 110, 192,
}, yuyv[] = {
/* YUYV */
50, 120, 70, 130,
89, 140, 110, 130,
50, 120, 70, 130,
89, 140, 110, 130,
50, 121, 70, 161,
90, 140, 110, 160,
50, 121, 70, 161,
90, 140, 110, 160,
};
static unsigned char expected[4 * 4 * 4] = {
......@@ -175,6 +185,9 @@ piglit_display(void)
case DRM_FORMAT_XYUV8888:
t = ayuv;
break;
case DRM_FORMAT_YUYV:
t = yuyv;
break;
default:
return PIGLIT_SKIP;
}
......
......@@ -144,6 +144,7 @@ piglit_intel_buf_create(unsigned w, unsigned h, unsigned fourcc,
break;
case DRM_FORMAT_GR88:
case DRM_FORMAT_RG88:
case DRM_FORMAT_YUYV:
cpp = 2;
break;
case DRM_FORMAT_XRGB8888:
......@@ -279,6 +280,7 @@ piglit_gbm_buf_create(unsigned w, unsigned h, unsigned fourcc,
break;
case DRM_FORMAT_GR88:
case DRM_FORMAT_RG88:
case DRM_FORMAT_YUYV:
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