All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <aliguori@us.ibm.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Re: [PATCH] Use opaque alpha channel to support Xgl
Date: Mon, 06 Mar 2006 18:51:32 -0600	[thread overview]
Message-ID: <440CD914.5010101@us.ibm.com> (raw)
In-Reply-To: <duhs3f$ql6$1@sea.gmane.org>

Christian Walther wrote:
> Anthony Liguori wrote:
>
>> I really don't like this patch as it seems like a hack but I couldn't
>> figure out a way to differentiate in SDL between a 24-bit depth with
>> a 32-bit pixel width (which is a common, non-alpha format) and a true
>> 32 bit depth with an alpha channel.
>
> Check SDL_Surface->format.Amask (see 
> http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fPixelFormat).
Here's the pixel format under normal X (24 bit depth):

BitsPerPixel 32
BytesPerPixel 4
Rloss Gloss, Bloss, Aloss {0, 0, 0, 8}
Rshift, Gshift, Bshift, Ashift {16, 8, 0, 0}
Rmask, Gmask, Bmask, Amask {ff0000, ff00, ff, 0}
Colorkey: 0
Alpha: 255

Here's the pixel format under Xgl:

BitsPerPixel 32
BytesPerPixel 4
Rloss Gloss, Bloss, Aloss {0, 0, 0, 8}
Rshift, Gshift, Bshift, Ashift {16, 8, 0, 0}
Rmask, Gmask, Bmask, Amask {ff0000, ff00, ff, 0}
Colorkey: 0
Alpha: 255

Notice that they are identical.  They probably shouldn't be (what's SDL 
doing not setting an Amask when there is an alpha channel...).
>> Hopefully, this will be fixed in future versions of SDL.
>
> I'm not convinced there's something to fix in SDL rather than Qemu 
> (but I'm not familiar with the issue), but if there is, please post 
> this on the SDL mailing list (sdl@libsdl.org, 
> http://news.gmane.org/gmane.comp.lib.sdl).
I will.

Regards,

Anthony Liguori
>  -Christian
>
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel

      reply	other threads:[~2006-03-07  0:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-05 22:45 [Qemu-devel] [PATCH] Use opaque alpha channel to support Xgl Anthony Liguori
2006-03-06 17:38 ` [Qemu-devel] " Christian Walther
2006-03-07  0:51   ` Anthony Liguori [this message]

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=440CD914.5010101@us.ibm.com \
    --to=aliguori@us.ibm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.