diff options
author | Krzysztof Helt <krzysztof.h1@wp.pl> | 2007-10-16 04:28:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 12:43:14 -0400 |
commit | 30dcc9093cc0617a10d84fea13371143f5c84ef0 (patch) | |
tree | 25f701bb75f31aee20af117cf56fd0fb7a658059 | |
parent | 138a451cce3a48792b4c785557578138dc8a5cc3 (diff) |
pm2fb: accelerated 24-bit fillrect
This patch adds accelerated fillrect for 24-bit depth.
Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
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>
-rw-r--r-- | drivers/video/pm2fb.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/video/pm2fb.c b/drivers/video/pm2fb.c index a5ccddc141a0..4b54e2776ca1 100644 --- a/drivers/video/pm2fb.c +++ b/drivers/video/pm2fb.c | |||
@@ -1077,7 +1077,13 @@ static void pm2fb_fillrect (struct fb_info *info, | |||
1077 | pm2_WR(par, PM2R_RENDER, | 1077 | pm2_WR(par, PM2R_RENDER, |
1078 | PM2F_RENDER_RECTANGLE | PM2F_RENDER_FASTFILL); | 1078 | PM2F_RENDER_RECTANGLE | PM2F_RENDER_FASTFILL); |
1079 | } else { | 1079 | } else { |
1080 | cfb_fillrect(info, region); | 1080 | WAIT_FIFO(par, 4); |
1081 | pm2_WR(par, PM2R_COLOR_DDA_MODE, 1); | ||
1082 | pm2_WR(par, PM2R_CONSTANT_COLOR, color); | ||
1083 | wmb(); | ||
1084 | pm2_WR(par, PM2R_RENDER, | ||
1085 | PM2F_RENDER_RECTANGLE | PM2F_INCREASE_X | PM2F_INCREASE_Y ); | ||
1086 | pm2_WR(par, PM2R_COLOR_DDA_MODE, 0); | ||
1081 | } | 1087 | } |
1082 | } | 1088 | } |
1083 | 1089 | ||