From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Bryan Stillwell <bryan@bokeoa.com>,
linux-fbdev-devel@lists.sourceforge.net
Subject: Re: radeonfb and 16bit color problem
Date: Mon, 24 Jun 2002 05:24:11 +0200 [thread overview]
Message-ID: <20020624032412.27294@192.168.4.1> (raw)
In-Reply-To: <20020620212958.B20756@bokeoa.com>
>Any ideas would be helpful. I tried looking at the code myself, but I'm
>still quite new to the framebuffer code. However, this part looked kind
>of strange to me:
>
> /* For 565, the green component is mixed one order below */
> if (rinfo->depth == 16) {
> OUTREG(PALETTE_INDEX, pindex>>1);
> OUTREG(PALETTE_DATA, (rinfo->palette[regno>>1].red << 16) |
> (green << 8) | (rinfo->palette[regno>>1].blue));
> green = rinfo->palette[regno<<1].green;
> }
>
>
>BTW, I have a Radeon 8500 (QL).
I wrote that part and it works just fine on my powerbook... at least with
the radeonfb version that is in my tree, but I don't think it differs
from the official one in this regard. You can try making sure it's properly
setting 32 palette entries for green when using that mode.
Ben.
-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
next prev parent reply other threads:[~2002-06-25 14:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-21 3:29 radeonfb and 16bit color problem Bryan Stillwell
2002-06-24 3:24 ` Benjamin Herrenschmidt [this message]
2002-06-25 16:41 ` Bryan Stillwell
2002-06-24 5:41 ` Benjamin Herrenschmidt
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=20020624032412.27294@192.168.4.1 \
--to=benh@kernel.crashing.org \
--cc=bryan@bokeoa.com \
--cc=linux-fbdev-devel@lists.sourceforge.net \
/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).