Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GL0nR-0005Bn-Ij for qemu-devel@nongnu.org; Wed, 06 Sep 2006 13:02:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GL0nO-00056P-2Y for qemu-devel@nongnu.org; Wed, 06 Sep 2006 13:02:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GL0nN-00056M-So for qemu-devel@nongnu.org; Wed, 06 Sep 2006 13:02:37 -0400 Received: from [199.232.41.67] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GL0nZ-0006wG-9r for qemu-devel@nongnu.org; Wed, 06 Sep 2006 13:02:49 -0400 Received: from [65.54.246.241] (helo=bay0-omc3-s41.bay0.hotmail.com) by mx20.gnu.org with esmtp (Exim 4.52) id 1GL0lu-0006ZE-6E for qemu-devel@nongnu.org; Wed, 06 Sep 2006 13:01:06 -0400 Message-ID: From: "Blue Swirl" Subject: Re: [Qemu-devel] Re: qemu-system-sparc video problem on 16 bitdisplays Date: Wed, 06 Sep 2006 18:59:39 +0200 Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_5694_6833_3f30" Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: waxdragon@gmail.com, anthony@codemonkey.ws, nox@jelal.kn-bremen.de Cc: qemu-devel@nongnu.org This is a multi-part message in MIME format. ------=_NextPart_000_5694_6833_3f30 Content-Type: text/plain; format=flowed Digging old bugs, I found this problem. Maybe this patch helps? I can't test it here (can't get display to 16 bit somehow). >On 8/9/06, Anthony Liguori wrote: >>On Thu, 10 Aug 2006 00:32:20 +0200, Juergen Lock wrote: >> >> > Hi! >> > >> > I was made aware of this by a FreeBSD user, but i suspect the >> > problem is not specific to FreeBSD hosts: If run on a 16 bit display, >> > qemu-system-sparc' video is messed up like shown here: >> > http://img320.imageshack.us/img320/3807/qemusparckd1.png >> > (pink, and uses only half of the window's width...) It looks okay on >>24 >> > bit displays. >> >>Looks you're telling QEMU that you've got a 16 bit buffer when it's really >>a 32 bit buffer. >> >>Perhaps we're mixing up bits-per-pixel with depth? >> >>Regards, >> >>Anthony Liguori >> >> > Thanx, >> > Juergen >> >> >> >> > >Perhaps this in tcx.c? > > switch (ts->ds->depth) { > case 32: > f = tcx_draw_line32; > break; > case 24: > f = tcx_draw_line24; > break; > default: > case 8: > f = tcx_draw_line8; > break; > case 0: > return; > } _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ ------=_NextPart_000_5694_6833_3f30 Content-Type: application/octet-stream; name="tcx-fix.diff.bz2" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="tcx-fix.diff.bz2" QlpoOTFBWSZTWYudRwkAAP5/gGYwAIBBf///yCAMSr/vv85AAbJHNISRKnpM j9Uemk/SnojQxANHpDCaDRo9BKEmTImhlPUDTahiepoAAA0D1DmATTAJkMAA TBMAAAEkqeKnqaNGmnkaR6n6oyYj0E0yZGRo0zSsiiAosDqGC64w1M5rK3kw 7+YCCjW4pRjyUzwjOCFYSVkBCkRgUQqd6YXr9jKeJuGotH7+uEx4OxB3sqIj zmj3/dad4Wq8tVNBKC7Y9UJlg1uM0DfXSMU4R5W2Giqsz9xL4K671ebeylxK IgtBIbohtmCZyPLqoGfEZc692comLSonSyzKn7kUwTrBNo7yJx5B5SxToqJr UHuovZFubN0Glz5MVY1UbG6Aw9SilyE8bSQ2JCUkx700+28Yf9ZlvhHRy/El LH06bysROLWqQcE6dkBxA2jfZjNhit03VOjEiULjRKkHsvEKOhGazLO7DSt5 8fRJssAQNoQhXY4b0cykM6eiyaLEyLk5epwUTSn45TrYmLDnV3Ci2cOkX+kc qHurb1o6RkESJNGwppud006Lw+KIK0qDM60EqIjQQXOA8oUiK51Jh4VLugDP 8CVntUqxnUEVgttdVDuj05II63juF3JFOFCQi51HCQ== ------=_NextPart_000_5694_6833_3f30--