From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzDOn-0006x6-8l for qemu-devel@nongnu.org; Mon, 23 Jun 2014 19:11:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzDOi-0003HT-2A for qemu-devel@nongnu.org; Mon, 23 Jun 2014 19:11:41 -0400 Received: from gate.crashing.org ([63.228.1.57]:40433) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzDOh-0003HK-PT for qemu-devel@nongnu.org; Mon, 23 Jun 2014 19:11:36 -0400 From: Benjamin Herrenschmidt Date: Tue, 24 Jun 2014 09:10:55 +1000 Message-Id: <1403565068-15229-2-git-send-email-benh@kernel.crashing.org> In-Reply-To: <1403565068-15229-1-git-send-email-benh@kernel.crashing.org> References: <1403565068-15229-1-git-send-email-benh@kernel.crashing.org> Subject: [Qemu-devel] [RFC 01/14] vga: Create direct sufaces for depth 24 too List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann pixman supports 24bpp directly, let's share surfaces For both endians even ! Signed-off-by: Benjamin Herrenschmidt --- hw/display/vga.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/display/vga.c b/hw/display/vga.c index e4cd206..4674576 100644 --- a/hw/display/vga.c +++ b/hw/display/vga.c @@ -1692,7 +1692,8 @@ static void vga_draw_graphic(VGACommonState *s, int full_update) disp_width != s->last_width || height != s->last_height || s->last_depth != depth) { - if (depth == 32 || ((depth == 16 || depth == 15) && !byteswap)) { + if (depth == 32 || depth == 24 || + ((depth == 16 || depth == 15) && !byteswap)) { pixman_format_code_t format = qemu_default_pixman_format(depth, !byteswap); surface = qemu_create_displaysurface_from(disp_width, -- 1.9.1