From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuJ3V-0002P8-P3 for qemu-devel@nongnu.org; Mon, 18 May 2015 07:17:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YuJ3Q-0005oO-Uk for qemu-devel@nongnu.org; Mon, 18 May 2015 07:17:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57328) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuJ3Q-0005o3-NZ for qemu-devel@nongnu.org; Mon, 18 May 2015 07:17:52 -0400 Message-ID: <1431947865.16446.29.camel@nilsson.home.kraxel.org> From: Gerd Hoffmann Date: Mon, 18 May 2015 13:17:45 +0200 In-Reply-To: <555999F8.80609@greensocs.com> References: <1431544326-13372-1-git-send-email-fred.konrad@greensocs.com> <1431544326-13372-4-git-send-email-fred.konrad@greensocs.com> <1431934462.10826.1.camel@nilsson.home.kraxel.org> <555999F8.80609@greensocs.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 3/8] console: add qemu_alloc_display_format. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Frederic Konrad Cc: peter.crosthwaite@xilinx.com, mark.burton@greensocs.com, qemu-devel@nongnu.org, hyunk@xilinx.com 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, fred.konrad@greensocs.com wrote: > >> From: KONRAD Frederic > >> > >> 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