* [PATCH 10/12] fbdev: Static pseudocolor with depth less than 4 does exist
@ 2006-04-29 0:41 Antonino A. Daplas
2006-04-29 7:38 ` Geert Uytterhoeven
0 siblings, 1 reply; 6+ messages in thread
From: Antonino A. Daplas @ 2006-04-29 0:41 UTC (permalink / raw)
To: Andrew Morton; +Cc: Linux Fbdev development list
A static pseudocolor visual with depth less than 4 does exist, so let's
not accidentally upscale the depth with this configuration
Signed-off-by: Antonino Daplas <adaplas@pol.net>
---
drivers/video/fbmem.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c
index 1cb9acf..19cb4c5 100644
--- a/drivers/video/fbmem.c
+++ b/drivers/video/fbmem.c
@@ -432,7 +432,7 @@ int fb_prepare_logo(struct fb_info *info
depth = info->var.green.length;
}
- if (info->fix.visual == FB_VISUAL_STATIC_PSEUDOCOLOR) {
+ if (info->fix.visual == FB_VISUAL_STATIC_PSEUDOCOLOR && depth > 4) {
/* assume console colormap */
depth = 4;
}
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 10/12] fbdev: Static pseudocolor with depth less than 4 does exist
2006-04-29 0:41 [PATCH 10/12] fbdev: Static pseudocolor with depth less than 4 does exist Antonino A. Daplas
@ 2006-04-29 7:38 ` Geert Uytterhoeven
2006-04-29 12:34 ` Antonino A. Daplas
0 siblings, 1 reply; 6+ messages in thread
From: Geert Uytterhoeven @ 2006-04-29 7:38 UTC (permalink / raw)
To: Linux Fbdev development list, Linux/m68k on Mac; +Cc: Andrew Morton, Linux/m68k
On Sat, 29 Apr 2006, Antonino A. Daplas wrote:
> A static pseudocolor visual with depth less than 4 does exist, so let's
> not accidentally upscale the depth with this configuration
Yes it does, at least on Mac/m68k.
Now the real question is: why doesn't macfb set FB_VISUAL_STATIC_PSEUDOCOLOR if
there's no macfb_setpalette routine?
> Signed-off-by: Antonino Daplas <adaplas@pol.net>
> ---
>
> drivers/video/fbmem.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c
> index 1cb9acf..19cb4c5 100644
> --- a/drivers/video/fbmem.c
> +++ b/drivers/video/fbmem.c
> @@ -432,7 +432,7 @@ int fb_prepare_logo(struct fb_info *info
> depth = info->var.green.length;
> }
>
> - if (info->fix.visual == FB_VISUAL_STATIC_PSEUDOCOLOR) {
> + if (info->fix.visual == FB_VISUAL_STATIC_PSEUDOCOLOR && depth > 4) {
> /* assume console colormap */
> depth = 4;
> }
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 10/12] fbdev: Static pseudocolor with depth less than 4 does exist
2006-04-29 7:38 ` Geert Uytterhoeven
@ 2006-04-29 12:34 ` Antonino A. Daplas
2006-04-29 18:28 ` Geert Uytterhoeven
0 siblings, 1 reply; 6+ messages in thread
From: Antonino A. Daplas @ 2006-04-29 12:34 UTC (permalink / raw)
To: linux-fbdev-devel
Cc: Linux/m68k on Mac, Andrew Morton, Linux/m68k, Geert Uytterhoeven
Geert Uytterhoeven wrote:
> On Sat, 29 Apr 2006, Antonino A. Daplas wrote:
>> A static pseudocolor visual with depth less than 4 does exist, so let's
>> not accidentally upscale the depth with this configuration
>
> Yes it does, at least on Mac/m68k.
>
> Now the real question is: why doesn't macfb set FB_VISUAL_STATIC_PSEUDOCOLOR if
> there's no macfb_setpalette routine?
It should. The other question is, what to do with static pseudocolor?
Do we always assume console colors? Or do we make drivers fill their own
info->cmap entries and not alter the contents when fb_set_cmap() is called?
Also, I made vesafb's visual static_pseudocolor if the mode is not VGA compatible
and the protected mode interface is absent. Fortunately, the VGA colormap is carried
over to vesafb, so by accident, the console color map coincides with the hardware
CLUT and the logo and console displays correctly.
Tony
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 10/12] fbdev: Static pseudocolor with depth less than 4 does exist
2006-04-29 18:28 ` Geert Uytterhoeven
@ 2006-04-29 15:50 ` Brad Boyer
2006-04-29 21:42 ` Antonino A. Daplas
1 sibling, 0 replies; 6+ messages in thread
From: Brad Boyer @ 2006-04-29 15:50 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Antonino A. Daplas, Linux Frame Buffer Device Development,
Andrew Morton, Linux/m68k
On Sat, Apr 29, 2006 at 08:28:37PM +0200, Geert Uytterhoeven wrote:
> On the other hand, at least on Mac/m68k the palette is inherited from MacOS.
> It would be possible for the Penguin booter to programs the standard console
> palette under MacOS, just before booting the kernel, but as I don't know much
> about Penguin, I have no idea whether that's currently done.
I'm not sure I have the latest version of Penguin, but the version I
have laying around has an option to set the current palette before
loading the kernel. I don't remember if it was on by default.
Brad Boyer
flar@allandria.com
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 10/12] fbdev: Static pseudocolor with depth less than 4 does exist
2006-04-29 12:34 ` Antonino A. Daplas
@ 2006-04-29 18:28 ` Geert Uytterhoeven
2006-04-29 15:50 ` Brad Boyer
2006-04-29 21:42 ` Antonino A. Daplas
0 siblings, 2 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2006-04-29 18:28 UTC (permalink / raw)
To: Antonino A. Daplas
Cc: Linux Frame Buffer Device Development, Andrew Morton, Linux/m68k
[ linux-mac68k@mac.linux-m68k.org removed as it seems to bounce? ]
On Sat, 29 Apr 2006, Antonino A. Daplas wrote:
> Geert Uytterhoeven wrote:
> > On Sat, 29 Apr 2006, Antonino A. Daplas wrote:
> >> A static pseudocolor visual with depth less than 4 does exist, so let's
> >> not accidentally upscale the depth with this configuration
> >
> > Yes it does, at least on Mac/m68k.
> >
> > Now the real question is: why doesn't macfb set FB_VISUAL_STATIC_PSEUDOCOLOR if
> > there's no macfb_setpalette routine?
>
> It should. The other question is, what to do with static pseudocolor?
> Do we always assume console colors? Or do we make drivers fill their own
> info->cmap entries and not alter the contents when fb_set_cmap() is called?
I don't think you can always assume console colors. Only the driver (if anyone
knows at all) knows the palette.
On the other hand, at least on Mac/m68k the palette is inherited from MacOS.
It would be possible for the Penguin booter to programs the standard console
palette under MacOS, just before booting the kernel, but as I don't know much
about Penguin, I have no idea whether that's currently done.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 10/12] fbdev: Static pseudocolor with depth less than 4 does exist
2006-04-29 18:28 ` Geert Uytterhoeven
2006-04-29 15:50 ` Brad Boyer
@ 2006-04-29 21:42 ` Antonino A. Daplas
1 sibling, 0 replies; 6+ messages in thread
From: Antonino A. Daplas @ 2006-04-29 21:42 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Linux Frame Buffer Device Development, Andrew Morton, Linux/m68k
Geert Uytterhoeven wrote:
> [ linux-mac68k@mac.linux-m68k.org removed as it seems to bounce? ]
>
> On Sat, 29 Apr 2006, Antonino A. Daplas wrote:
>> Geert Uytterhoeven wrote:
>>> On Sat, 29 Apr 2006, Antonino A. Daplas wrote:
>>>> A static pseudocolor visual with depth less than 4 does exist, so let's
>>>> not accidentally upscale the depth with this configuration
>>> Yes it does, at least on Mac/m68k.
>>>
>>> Now the real question is: why doesn't macfb set FB_VISUAL_STATIC_PSEUDOCOLOR if
>>> there's no macfb_setpalette routine?
>> It should. The other question is, what to do with static pseudocolor?
>> Do we always assume console colors? Or do we make drivers fill their own
>> info->cmap entries and not alter the contents when fb_set_cmap() is called?
>
> I don't think you can always assume console colors. Only the driver (if anyone
> knows at all) knows the palette.
>
> On the other hand, at least on Mac/m68k the palette is inherited from MacOS.
> It would be possible for the Penguin booter to programs the standard console
> palette under MacOS, just before booting the kernel, but as I don't know much
> about Penguin, I have no idea whether that's currently done.
>
Making the palette match the console would be the simplest solution. Otherwise,
we make the drivers export a color map which will be read-only. Then fbcon and
other clients will just have to alter their palette to best fit the hardware.
Tony
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-04-29 21:42 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-29 0:41 [PATCH 10/12] fbdev: Static pseudocolor with depth less than 4 does exist Antonino A. Daplas
2006-04-29 7:38 ` Geert Uytterhoeven
2006-04-29 12:34 ` Antonino A. Daplas
2006-04-29 18:28 ` Geert Uytterhoeven
2006-04-29 15:50 ` Brad Boyer
2006-04-29 21:42 ` Antonino A. Daplas
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).