Commit 1bd3766b authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] radeonfb fix (non-8bpp clear doesn't use palette)

From: Jurriaan <thunder7@xs4all.nl>

I've used this patch since 2.6.5, and other users have confirmed it
solves their problems.

Basically, when not in 8bpp mode, radeonfb should use the palette when
clearing a region on screen.  This is how it's done in 2.4 and xfree, also.
Signed-off-by: default avatarJurriaan Kalkman <thunder7@xs4all.nl>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f7b634c5
......@@ -13,7 +13,10 @@ static void radeonfb_prim_fillrect(struct radeonfb_info *rinfo,
rinfo->dp_gui_master_cntl /* contains, like GMC_DST_32BPP */
| GMC_BRUSH_SOLID_COLOR
| ROP3_P);
OUTREG(DP_BRUSH_FRGD_CLR, region->color);
if (radeon_get_dstbpp(rinfo->depth) != DST_8BPP)
OUTREG(DP_BRUSH_FRGD_CLR, rinfo->pseudo_palette[region->color]);
else
OUTREG(DP_BRUSH_FRGD_CLR, region->color);
OUTREG(DP_WRITE_MSK, 0xffffffff);
OUTREG(DP_CNTL, (DST_X_LEFT_TO_RIGHT | DST_Y_TOP_TO_BOTTOM));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment