[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 3/8] console: add qemu_alloc_display_format.
From: |
Gerd Hoffmann |
Subject: |
Re: [Qemu-devel] [PATCH 3/8] console: add qemu_alloc_display_format. |
Date: |
Mon, 18 May 2015 13:17:45 +0200 |
On Mo, 2015-05-18 at 09:51 +0200, Frederic Konrad wrote:
> On 18/05/2015 09:34, Gerd Hoffmann wrote:
> > On Mi, 2015-05-13 at 21:12 +0200, address@hidden wrote:
> >> From: KONRAD Frederic <address@hidden>
> >>
> >> This allows to create a surface with a different format than xrgb8888.
> > What is the use case for this?
> >
> > cheers,
> > Gerd
> >
> >
> >
> Hi,
>
> The Display Port introduced in patch 7 and the driver use differents
> pixel format.
> eg: rgb565, RGB888, etc. see xilinx_dp_change_graphic_fmt in patch 7:
Ah, and dpdma scatterlists (patch 6) suggest the guest framebuffer is
not contiguous in guest phyiscal memory, correct? So using guest memory
as surface storage using qemu_create_displaysurface_from() doesn't work.
But I think you can simply call qemu_create_displaysurface_from() with
linesize=0 and data=NULL to make pixman allocate storage for you.
cheers,
Gerd
[Qemu-devel] [PATCH 4/8] introduce dpcd module., fred . konrad, 2015/05/13
[Qemu-devel] [PATCH 5/8] hw/i2c-ddc.c: Implement DDC I2C slave, fred . konrad, 2015/05/13
[Qemu-devel] [PATCH 8/8] arm: xlnx-zynqmp: Add DisplayPort and DPDMA., fred . konrad, 2015/05/13
[Qemu-devel] [PATCH 6/8] Introduce xilinx dpdma., fred . konrad, 2015/05/13