Change-Id: I1737b7807730fbdeaf3bad505c1061b985647f87
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
for (i = 0; i < caps->format_count; i++) {
/* TODO: kernel reports wrong formats */
if (plane->formats[i] != DRM_FORMAT_XRGB8888 &&
- plane->formats[i] != DRM_FORMAT_ARGB8888)
+ plane->formats[i] != DRM_FORMAT_ARGB8888 &&
+ plane->formats[i] != DRM_FORMAT_NV12 &&
+ plane->formats[i] != DRM_FORMAT_YUV420)
continue;
- caps->formats[i] = tdm_vc4_format_to_tbm_format(plane->formats[i]);
+ caps->formats[format_count] = tdm_vc4_format_to_tbm_format(plane->formats[i]);
format_count++;
}