From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LZAzg-0005Cp-8U for qemu-devel@nongnu.org; Mon, 16 Feb 2009 16:27:12 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LZAze-0005Ca-9d for qemu-devel@nongnu.org; Mon, 16 Feb 2009 16:27:11 -0500 Received: from [199.232.76.173] (port=55653 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZAze-0005CX-5i for qemu-devel@nongnu.org; Mon, 16 Feb 2009 16:27:10 -0500 Received: from smtprelay0058.hostedemail.com ([216.40.44.58]:57498 helo=smtprelay.hostedemail.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LZAze-00020g-0p for qemu-devel@nongnu.org; Mon, 16 Feb 2009 16:27:10 -0500 Received: from filter.hostedemail.com (ff-bigip1 [10.5.19.254]) by smtprelay02.hostedemail.com (Postfix) with SMTP id F03A52225F67 for ; Mon, 16 Feb 2009 21:27:06 +0000 (UTC) Received: from [192.168.2.184] (cpe-66-66-167-50.rochester.res.rr.com [66.66.167.50]) (Authenticated sender: kressb@moose.net) by omf05.hostedemail.com (Postfix) with ESMTP for ; Mon, 16 Feb 2009 21:27:06 +0000 (UTC) Message-ID: <4999DA28.3040404@moose.net> Date: Mon, 16 Feb 2009 16:27:04 -0500 From: Brian Kress MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040108010603090901020508" Subject: [Qemu-devel] [PATCH] VMware SVGA uses incorrect depth Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------040108010603090901020508 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit The VMware SVGA adapter is set to a 24 bit depth, where as the display surfaces (and just about everything else) are using a 32 bit depth. So when you use "-vga vmware" in either the sdl or vnc displays, you get some very odd video that has the wrong colors, is repeated and is only over 3/4 of the screen. Fix seems to be to change it to 32 bit. With this patch I can use VMware video in both sdl and vnc and have it display correctly. --------------040108010603090901020508 Content-Type: text/plain; name="patch.vmware_vga" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch.vmware_vga" Signed-off-by: Brian Kress Index: hw/vmware_vga.c =================================================================== --- hw/vmware_vga.c (revision 6626) +++ hw/vmware_vga.c (working copy) @@ -914,7 +914,7 @@ s->width = -1; s->height = -1; s->svgaid = SVGA_ID; - s->depth = 24; + s->depth = 32; s->bypp = (s->depth + 7) >> 3; s->cursor.on = 0; s->redraw_fifo_first = 0; --------------040108010603090901020508--