mirror of
https://github.com/adulau/aha.git
synced 2024-12-30 12:46:17 +00:00
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>
This commit is contained in:
parent
138a451cce
commit
30dcc9093c
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue