From: <benh@kernel.crashing.org>
To: Peter Horton <pdh@berserk.demon.co.uk>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Radeon frame buffer driver
Date: Wed, 10 Apr 2002 11:57:31 +0100 [thread overview]
Message-ID: <20020410105731.28774@mailhost.mipsys.com> (raw)
In-Reply-To: <20020410094055.GA789@berserk.demon.co.uk>
>Please look at code.
Ok, I may have been confused by looking only at the patch file
>In 32bpp mode user space can set all 256 palette indices.
>
>In 15 bit mode user space can set all 32 palette indices.
>
>In 16bpp mode user space can set all 32 palette indices for red and
>blue, and all 64 palette indices for green.
Fine, though I noticed the get_cmap_len got changed to
+ return var->bits_per_pixel == 8 ? 256 : 16;
>The reason 16bpp mode fails when using "fbtv" is that "fbtv" only
>initialises the first 32 palette indices for green, but the captured
>video uses all 64 values. I patched "fbtv" to initialise all 64 indices
>and it worked fine. I think this is a bug in "fbtv" (and other such
>apps).
>
>There is a hack in the code to support "fbtv" in 16bpp mode, but it is
>only used if you pass the driver the "fb16fix" flag, and it limits the
>green component to 5 bits. I used it for testing but it doesn't need to
>live any longer. If people want to use "fbtv" they should use 15 or 32
>bit mode.
Ok use a fixed fbtv, I agree.
>Test it, in all modes, I have.
>
>The other hack is one that sets the top indices in the palette to white
>when palette index 0 is set. This is needed for the soft cursor to work
>as the soft cursor just flips all the bits in each pixel, which doesn't
>work in DIRECTCOLOR modes. Other drivers do similiar things. I've
>started to look at using the accelerator engine for flipping the cursor
>but there are locking issues involved which I want to get right.
Maybe we should use the HW cursor. Setting the top indice will cause
problem with MacOnLinux as MacOS don't use the same color layout as
most unix apps.
Anyway, I'll look at your patch more closely and test it asap,
Ben.
next prev parent reply other threads:[~2002-04-10 9:57 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-10 0:12 [PATCH] Radeon frame buffer driver Peter Horton
2002-04-10 2:31 ` Jonathan A. Davis
2002-04-10 6:04 ` Ani Joshi
2002-04-10 9:06 ` benh
2002-04-10 9:40 ` Peter Horton
2002-04-10 10:57 ` benh [this message]
2002-04-10 10:19 ` Peter Horton
2002-04-10 11:06 ` Geert Uytterhoeven
2002-04-10 13:01 ` benh
2002-04-10 12:22 ` Geert Uytterhoeven
2002-04-10 13:27 ` benh
2002-04-10 13:03 ` Peter Horton
2002-04-10 13:14 ` Geert Uytterhoeven
2002-04-10 23:09 ` Peter Horton
2002-04-10 13:00 ` benh
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=20020410105731.28774@mailhost.mipsys.com \
--to=benh@kernel.crashing.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pdh@berserk.demon.co.uk \
/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