From: "Leonardo E. Reiter" <lreiter@win4lin.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] PATCH: solaris-sparc-slirp fix
Date: Mon, 01 May 2006 17:19:08 -0400 [thread overview]
Message-ID: <44567B4C.80000@win4lin.com> (raw)
In-Reply-To: <44565A82.9070700@bellard.org>
Thanks for the explanation Fabrice... I guess I am not sure how to swap
the host pixel format without taking a performance penalty. So for now
I just offer the patch I made in case anyone else finds it useful for
their own needs. Maybe I'll revisit this in the future when I have more
time and come up with something more general. Right now, it does the
job with no performance hit for guests running on little Endian hosts,
trying to blit on to Sun X servers in 24-bit mode.
I agree that the 8/15/16 bit stuff is probably not too relevant - I just
implemented it since it was implemented in the original patch (written
by someone else) that I adapted.
- Leo Reiter
Fabrice Bellard wrote:
> Hi,
>
> I did not accept your patch for two reasons:
>
> 1) You changed the guest vga frame buffer format and I don't think this
> is what you wanted (it can be useful to emulate VGA on big endian guests
> though - the current implementation for ppc guests is a hack). What is
> needed is to swap the host pixel format.
>
> 2) You added support for RGB swapping for 8/15/16 depths and I am not
> sure this is useful. Endianness swapping would be more useful for 15/16
> depths.
>
> Fabrice.
>
> Leonardo E. Reiter wrote:
>
>> Ben,
>>
>> You can use the patch I posted here recently to get QEMU to fix the BGR
>> problem internally. It doesn't have to be done at the VNC level - and
>> in fact, this way, you can use it on the Solaris native X server (or
>> even SunRays) in 24-bit color mode. I am attaching a new version of the
>> patch, complete with the detection logic (to make it automatic), against
>> today's CVS.
>>
>> My original post:
>>
>> http://lists.gnu.org/archive/html/qemu-devel/2006-04/msg00181.html
>>
>> The last (and fast) version:
>>
>> http://lists.gnu.org/archive/html/qemu-devel/2006-04/msg00195.html
>>
>> An additional hack to get SDL to configure this automatically, without
>> needing the -bgr option on the command-line:
>>
>> http://lists.gnu.org/archive/html/qemu-devel/2006-04/msg00230.html
>>
>> Maybe Fabrice or Paul can commit this since I addressed all the original
>> issues, but have yet to hear feedback on it. It's working fine for
>> myself and for my customers using SunRays for several weeks now. The
>> only issue is cirrus VGA in 16-bit mode seems to do some optimization
>> that bypasses the swapping code. regular VGA or cirrus VGA in 24-bit
>> mode (on the guest) works fine.
>>
>> Regards,
>>
>> Leo Reiter
>>
>> Ben Taylor wrote:
>
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
--
Leonardo E. Reiter
Vice President of Product Development, CTO
Win4Lin, Inc.
Virtual Computing that means Business
Main: +1 512 339 7979
Fax: +1 512 532 6501
http://www.win4lin.com
next prev parent reply other threads:[~2006-05-01 21:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-01 17:59 [Qemu-devel] PATCH: solaris-sparc-slirp fix Ben Taylor
2006-05-01 18:24 ` Leonardo E. Reiter
2006-05-01 18:27 ` Leonardo E. Reiter
2006-05-01 18:59 ` Fabrice Bellard
2006-05-01 21:19 ` Leonardo E. Reiter [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-05-02 13:34 Ben Taylor
2006-05-02 13:40 ` Johannes Schindelin
2006-05-02 13:46 Ben Taylor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44567B4C.80000@win4lin.com \
--to=lreiter@win4lin.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).