Skip to content

Commit

Permalink
drm: xilinx: dp_sub: Add more yuv formats
Browse files Browse the repository at this point in the history
List all supported YUV formats.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
  • Loading branch information
xlnx-hyunkwon authored and Michal Simek committed Oct 13, 2016
1 parent 776658c commit 40fa83c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions drivers/gpu/drm/xilinx/xilinx_drm_dp_sub.c
Expand Up @@ -575,6 +575,16 @@ static const struct xilinx_drm_dp_sub_fmt av_buf_vid_fmts[] = {
.sf[1] = XILINX_DP_SUB_AV_BUF_4BIT_SF,
.sf[2] = XILINX_DP_SUB_AV_BUF_4BIT_SF,
.name = "nv16",
}, {
.drm_fmt = DRM_FORMAT_NV61,
.dp_sub_fmt = XILINX_DP_SUB_AV_BUF_FMT_NL_VID_YV16CI2,
.rgb = false,
.swap = false,
.chroma_sub = true,
.sf[0] = XILINX_DP_SUB_AV_BUF_8BIT_SF,
.sf[1] = XILINX_DP_SUB_AV_BUF_4BIT_SF,
.sf[2] = XILINX_DP_SUB_AV_BUF_4BIT_SF,
.name = "nv61",
}, {
.drm_fmt = DRM_FORMAT_BGR888,
.dp_sub_fmt = XILINX_DP_SUB_AV_BUF_FMT_NL_VID_RGB888,
Expand Down Expand Up @@ -615,6 +625,26 @@ static const struct xilinx_drm_dp_sub_fmt av_buf_vid_fmts[] = {
.sf[1] = XILINX_DP_SUB_AV_BUF_8BIT_SF,
.sf[2] = XILINX_DP_SUB_AV_BUF_8BIT_SF,
.name = "xrgb8888",
}, {
.drm_fmt = DRM_FORMAT_NV12,
.dp_sub_fmt = XILINX_DP_SUB_AV_BUF_FMT_NL_VID_YV16CI_420,
.rgb = false,
.swap = false,
.chroma_sub = true,
.sf[0] = XILINX_DP_SUB_AV_BUF_8BIT_SF,
.sf[1] = XILINX_DP_SUB_AV_BUF_4BIT_SF,
.sf[2] = XILINX_DP_SUB_AV_BUF_4BIT_SF,
.name = "nv12",
}, {
.drm_fmt = DRM_FORMAT_NV21,
.dp_sub_fmt = XILINX_DP_SUB_AV_BUF_FMT_NL_VID_YV16CI2_420,
.rgb = false,
.swap = false,
.chroma_sub = true,
.sf[0] = XILINX_DP_SUB_AV_BUF_8BIT_SF,
.sf[1] = XILINX_DP_SUB_AV_BUF_4BIT_SF,
.sf[2] = XILINX_DP_SUB_AV_BUF_4BIT_SF,
.name = "nv21",
}
};

Expand Down

0 comments on commit 40fa83c

Please sign in to comment.