diff options
author | Antonino A. Daplas <adaplas@gmail.com> | 2007-05-08 03:39:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:15:30 -0400 |
commit | bf26ad72a60c0009a99179b449a43daa6bf4b4f6 (patch) | |
tree | 55ba5c443aa0e0aa97e692f4be29c582356fd056 /drivers/video | |
parent | dc0e6e0544f1cb2af44e5d7a7e68acda05dec6fa (diff) |
fbdev: advertise limitation of drawing engine
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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/fbmem.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c index 7b72841222df..c4ce3e44327e 100644 --- a/drivers/video/fbmem.c +++ b/drivers/video/fbmem.c | |||
@@ -1321,6 +1321,12 @@ register_framebuffer(struct fb_info *fb_info) | |||
1321 | } | 1321 | } |
1322 | fb_info->pixmap.offset = 0; | 1322 | fb_info->pixmap.offset = 0; |
1323 | 1323 | ||
1324 | if (!fb_info->pixmap.blit_x) | ||
1325 | fb_info->pixmap.blit_x = ~(u32)0; | ||
1326 | |||
1327 | if (!fb_info->pixmap.blit_y) | ||
1328 | fb_info->pixmap.blit_y = ~(u32)0; | ||
1329 | |||
1324 | if (!fb_info->modelist.prev || !fb_info->modelist.next) | 1330 | if (!fb_info->modelist.prev || !fb_info->modelist.next) |
1325 | INIT_LIST_HEAD(&fb_info->modelist); | 1331 | INIT_LIST_HEAD(&fb_info->modelist); |
1326 | 1332 | ||