From: Antonino A. D. <ad...@gm...> - 2007-07-26 12:58:41
|
From: Krzysztof Helt <krz...@wp...> This patch adds accelerated fillrect for 24-bit depth. Signed-off-by: Krzysztof Helt <krz...@wp...> Signed-off-by: Antonino Daplas <ad...@gm...> --- 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 06ac564..90af047 100644 --- a/drivers/video/pm2fb.c +++ b/drivers/video/pm2fb.c @@ -1077,7 +1077,13 @@ static void pm2fb_fillrect (struct fb_in 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); } } |