Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54952
b: refs/heads/master
c: 56c7554
h: refs/heads/master
v: v3
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed May 8, 2007
1 parent 1ec9027 commit 7646683
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 38a3dc51852d8350b156ea909c5aa8767d71b005
refs/heads/master: 56c7554938e5945b770365e326f0c3d031ca231f
18 changes: 18 additions & 0 deletions trunk/drivers/video/s3fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,23 @@ static int s3fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info)
return 0;
}

/* Get capabilities of accelerator based on the mode */

static void s3fb_get_caps(struct fb_info *info, struct fb_blit_caps *caps,
struct fb_var_screeninfo *var)
{
if (var->bits_per_pixel == 0) {
/* can only support 256 8x16 bitmap */
caps->x = 1 << (8 - 1);
caps->y = 1 << (16 - 1);
caps->len = 256;
} else {
caps->x = ~(u32)0;
caps->y = ~(u32)0;
caps->len = ~(u32)0;
}
}

/* ------------------------------------------------------------------------- */

/* Frame buffer operations */
Expand All @@ -815,6 +832,7 @@ static struct fb_ops s3fb_ops = {
.fb_fillrect = s3fb_fillrect,
.fb_copyarea = cfb_copyarea,
.fb_imageblit = s3fb_imageblit,
.fb_get_caps = s3fb_get_caps,
};

/* ------------------------------------------------------------------------- */
Expand Down

0 comments on commit 7646683

Please sign in to comment.