summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdgar E. Iglesias2017-01-17 23:31:09 +0100
committerEdgar E. Iglesias2017-07-04 09:22:20 +0200
commit31cf950ea2a010c33e5384aaba91f01dc27c1599 (patch)
tree61bda5a641a74641d22706a8c1c891db3322ce39
parenttarget-microblaze: Add CPU version 10.0 (diff)
downloadqemu-31cf950ea2a010c33e5384aaba91f01dc27c1599.tar.gz
qemu-31cf950ea2a010c33e5384aaba91f01dc27c1599.tar.xz
qemu-31cf950ea2a010c33e5384aaba91f01dc27c1599.zip
xilinx-dp: Add support for the yuy2 video format
Add support for the yuy2 video format. Reviewed-by: KONRAD Frederic <frederic.konrad@adacore.com> Acked-by: Sai Pavan Boddu <saipava@xilinx.com> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
-rw-r--r--hw/display/xlnx_dp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/display/xlnx_dp.c b/hw/display/xlnx_dp.c
index f7b7b80c68..a77d7db22f 100644
--- a/hw/display/xlnx_dp.c
+++ b/hw/display/xlnx_dp.c
@@ -624,6 +624,9 @@ static void xlnx_dp_change_graphic_fmt(XlnxDPState *s)
case 0:
s->v_plane.format = PIXMAN_x8b8g8r8;
break;
+ case DP_NL_VID_Y0_CB_Y1_CR:
+ s->v_plane.format = PIXMAN_yuy2;
+ break;
case DP_NL_VID_RGBA8880:
s->v_plane.format = PIXMAN_x8b8g8r8;
break;