projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
138a451
)
pm2fb: accelerated 24-bit fillrect
author
Krzysztof Helt
<
[email protected]
>
Tue, 16 Oct 2007 08:28:36 +0000
(
01:28
-0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 16 Oct 2007 16:43:14 +0000
(09:43 -0700)
This patch adds accelerated fillrect for 24-bit depth.
Signed-off-by: Krzysztof Helt <
[email protected]
>
Signed-off-by: Antonino Daplas <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/video/pm2fb.c
patch
|
blob
|
history
diff --git
a/drivers/video/pm2fb.c
b/drivers/video/pm2fb.c
index a5ccddc141a0f4d65543b89437a8de5862a2f0ca..4b54e2776ca14d07e5447c67092d095edba5985e 100644
(file)
--- a/
drivers/video/pm2fb.c
+++ b/
drivers/video/pm2fb.c
@@
-1077,7
+1077,13
@@
static void pm2fb_fillrect (struct fb_info *info,
pm2_WR(par, PM2R_RENDER,
PM2F_RENDER_RECTANGLE | PM2F_RENDER_FASTFILL);
} else {
- cfb_fillrect(info, region);
+ WAIT_FIFO(par, 4);
+ pm2_WR(par, PM2R_COLOR_DDA_MODE, 1);
+ pm2_WR(par, PM2R_CONSTANT_COLOR, color);
+ wmb();
+ pm2_WR(par, PM2R_RENDER,
+ PM2F_RENDER_RECTANGLE | PM2F_INCREASE_X | PM2F_INCREASE_Y );
+ pm2_WR(par, PM2R_COLOR_DDA_MODE, 0);
}
}