* [PATCH 27/41] fbdev: Advertise limitation of drawing engine
@ 2007-04-25 6:56 Antonino A. Daplas
2007-04-25 21:23 ` Ondrej Zajicek
0 siblings, 1 reply; 5+ messages in thread
From: Antonino A. Daplas @ 2007-04-25 6:56 UTC (permalink / raw)
To: Andrew Morton; +Cc: Ondrej Zajicek, Linux Fbdev development list
A few drivers are not capable of blitting rectangles of any dimension.
vga16fb can only blit 8-pixel wide rectangles, while s3fb (in tileblitting
mode) can only blit 8x16 rectangles. For example, loading a 12x22 font in
vga16fb will result in a corrupt display.
Advertise this limitation/capability in info->pixmap.blit_x and blit_y. These
fields are 32-bit arrays (font max is 32x32 only), ie, if bit 7 is set, then
width/height of 7+1 is supported.
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
---
drivers/video/fbmem.c | 6 ++++++
include/linux/fb.h | 4 ++++
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c
index 7b72841..c4ce3e4 100644
--- a/drivers/video/fbmem.c
+++ b/drivers/video/fbmem.c
@@ -1321,6 +1321,12 @@ register_framebuffer(struct fb_info *fb_
}
fb_info->pixmap.offset = 0;
+ if (!fb_info->pixmap.blit_x)
+ fb_info->pixmap.blit_x = ~(u32)0;
+
+ if (!fb_info->pixmap.blit_y)
+ fb_info->pixmap.blit_y = ~(u32)0;
+
if (!fb_info->modelist.prev || !fb_info->modelist.next)
INIT_LIST_HEAD(&fb_info->modelist);
diff --git a/include/linux/fb.h b/include/linux/fb.h
index 70d154a..619ba1e 100644
--- a/include/linux/fb.h
+++ b/include/linux/fb.h
@@ -558,6 +558,10 @@ struct fb_pixmap {
u32 scan_align; /* alignment per scanline */
u32 access_align; /* alignment per read/write (bits) */
u32 flags; /* see FB_PIXMAP_* */
+ u32 blit_x; /* supported bit block dimensions (1-32)*/
+ u32 blit_y; /* Format: blit_x = 1 << (width - 1) */
+ /* blit_y = 1 << (height - 1) */
+ /* if 0, will be set to 0xffffffff (all)*/
/* access methods */
void (*writeio)(struct fb_info *info, void __iomem *dst, void *src, unsigned int size);
void (*readio) (struct fb_info *info, void *dst, void __iomem *src, unsigned int size);
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH 27/41] fbdev: Advertise limitation of drawing engine
2007-04-25 6:56 [PATCH 27/41] fbdev: Advertise limitation of drawing engine Antonino A. Daplas
@ 2007-04-25 21:23 ` Ondrej Zajicek
2007-04-25 23:10 ` Antonino A. Daplas
0 siblings, 1 reply; 5+ messages in thread
From: Ondrej Zajicek @ 2007-04-25 21:23 UTC (permalink / raw)
To: Antonino A. Daplas; +Cc: Linux Fbdev development list
[-- Attachment #1.1: Type: text/plain, Size: 767 bytes --]
On Wed, Apr 25, 2007 at 02:56:52PM +0800, Antonino A. Daplas wrote:
> A few drivers are not capable of blitting rectangles of any dimension.
> vga16fb can only blit 8-pixel wide rectangles, while s3fb (in tileblitting
> mode) can only blit 8x16 rectangles.
I have two new drivers which use tileblit. Where i can get diff of your
tree (not splitted to fifty parts and mixed with mail) to be able to
update that drivers to new interfaces? Or should i send it in current
form (againts 2.6.21-rc7)?
--
Elen sila lumenn' omentielvo
Ondrej 'SanTiago' Zajicek (email: santiago@mail.cz, jabber: santiago@njs.netlab.cz)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
[-- Attachment #2: Type: text/plain, Size: 286 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
[-- Attachment #3: Type: text/plain, Size: 182 bytes --]
_______________________________________________
Linux-fbdev-devel mailing list
Linux-fbdev-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 27/41] fbdev: Advertise limitation of drawing engine
2007-04-25 21:23 ` Ondrej Zajicek
@ 2007-04-25 23:10 ` Antonino A. Daplas
2007-04-26 6:38 ` Geert Uytterhoeven
0 siblings, 1 reply; 5+ messages in thread
From: Antonino A. Daplas @ 2007-04-25 23:10 UTC (permalink / raw)
To: Ondrej Zajicek; +Cc: Linux Fbdev development list
On Wed, 2007-04-25 at 23:23 +0200, Ondrej Zajicek wrote:
> On Wed, Apr 25, 2007 at 02:56:52PM +0800, Antonino A. Daplas wrote:
> > A few drivers are not capable of blitting rectangles of any dimension.
> > vga16fb can only blit 8-pixel wide rectangles, while s3fb (in tileblitting
> > mode) can only blit 8x16 rectangles.
>
> I have two new drivers which use tileblit. Where i can get diff of your
> tree (not splitted to fifty parts and mixed with mail) to be able to
No public tree, and I don't have CVS access to fbdev-devel.
> update that drivers to new interfaces? Or should i send it in current
> form (againts 2.6.21-rc7)?
You can submit it based on Linus's tree. And then we'll just create
another patch on top of that (once akpm merges my changes to his tree).
This way, if your driver gets to Linus's tree prior to my changes, your
driver will stay working.
Tony
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 27/41] fbdev: Advertise limitation of drawing engine
2007-04-25 23:10 ` Antonino A. Daplas
@ 2007-04-26 6:38 ` Geert Uytterhoeven
2007-04-26 7:17 ` Antonino A. Daplas
0 siblings, 1 reply; 5+ messages in thread
From: Geert Uytterhoeven @ 2007-04-26 6:38 UTC (permalink / raw)
To: Antonino A. Daplas; +Cc: Linux Frame Buffer Device Development
On Thu, 26 Apr 2007, Antonino A. Daplas wrote:
> On Wed, 2007-04-25 at 23:23 +0200, Ondrej Zajicek wrote:
> > On Wed, Apr 25, 2007 at 02:56:52PM +0800, Antonino A. Daplas wrote:
> > > A few drivers are not capable of blitting rectangles of any dimension.
> > > vga16fb can only blit 8-pixel wide rectangles, while s3fb (in tileblitting
> > > mode) can only blit 8x16 rectangles.
> >
> > I have two new drivers which use tileblit. Where i can get diff of your
> > tree (not splitted to fifty parts and mixed with mail) to be able to
>
> No public tree, and I don't have CVS access to fbdev-devel.
That can be arranged, if you want it... ;-)
Another option is a subdirectory on
http://www.kernel.org/pub/linux/kernel/people/, where you can host a git
tree, patches, ...?
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
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH 27/41] fbdev: Advertise limitation of drawing engine
2007-04-26 6:38 ` Geert Uytterhoeven
@ 2007-04-26 7:17 ` Antonino A. Daplas
0 siblings, 0 replies; 5+ messages in thread
From: Antonino A. Daplas @ 2007-04-26 7:17 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Linux Frame Buffer Device Development
On Thu, 2007-04-26 at 08:38 +0200, Geert Uytterhoeven wrote:
> On Thu, 26 Apr 2007, Antonino A. Daplas wrote:
> > On Wed, 2007-04-25 at 23:23 +0200, Ondrej Zajicek wrote:
> > > On Wed, Apr 25, 2007 at 02:56:52PM +0800, Antonino A. Daplas wrote:
> > > > A few drivers are not capable of blitting rectangles of any dimension.
> > > > vga16fb can only blit 8-pixel wide rectangles, while s3fb (in tileblitting
> > > > mode) can only blit 8x16 rectangles.
> > >
> > > I have two new drivers which use tileblit. Where i can get diff of your
> > > tree (not splitted to fifty parts and mixed with mail) to be able to
> >
> > No public tree, and I don't have CVS access to fbdev-devel.
>
> That can be arranged, if you want it... ;-)
Frankly, no, I don't want the additional work of maintaining a public
tree :-). Plus, fbdev is pretty much in a stable state. so merging
patches based on Linus's or akpm's tree is not a problem.
But if people really want a public tree, I won't mind maintaining one.
Tony
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-04-26 7:17 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-25 6:56 [PATCH 27/41] fbdev: Advertise limitation of drawing engine Antonino A. Daplas
2007-04-25 21:23 ` Ondrej Zajicek
2007-04-25 23:10 ` Antonino A. Daplas
2007-04-26 6:38 ` Geert Uytterhoeven
2007-04-26 7:17 ` 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).