From: Petr V. <VAN...@vc...> - 2004-04-07 17:12:05
|
On 7 Apr 04 at 18:33, Jurriaan wrote: > > Matrox doesn't. I also tested with a 8x16 font, instead of my regular > > 12x22 font, but that didn't make any difference. > > > Small update: if I set the default cursor to CUR_NONE in > include/linux/console_struct.h, the problem stays the same. That would > rule out anything to do with cursor generation, right? > I repeat my offer: I'll send an Ati video-card free of charge to anyone > who offers to track this bug down. I was able to reproduce it on my Compaq EVO with Radeon Mobility 7500. In 8bpp everything works correctly. In 32bpp "clear" immediately fills screen with blue instead of white (if I get it correctly, it is actually not clearing with blue: it clears with $CORRECT_BACKGROUND & BLUE). In 16bpp it behaves randomly: sometime it clears with correct color, sometime with $CORRECT_BACKGROUND & BLUE... Strangest is that going with up arrow through bash history causes bash line displayed on essentially random place - left to correct position, sometime even so left that it is displayed on right side of screen one pixel up.... (I did not notice this problem with 8/32bpp; 'fbset -accel false' has no impact on behavior) Only thing worth noting is that it is on kernel with my matroxfb patches... I do not know whether Jurriaan uses stock kernel or my patch. Best regards, Petr Vandrovec van...@vc... |
From: Petr V. <VAN...@vc...> - 2004-04-07 21:25:26
|
On 7 Apr 04 at 22:44, Jurriaan wrote: > From: Jean Delvare <kh...@li...> > Date: Wed, Apr 07, 2004 at 10:24:15PM +0200 > > > Thanks everyone for mailing back-and-forth, and testing. Please test > > > if this fixes the problem on your radeon-machine as well, if possible. > > > > Please provide a clean patch against 2.6.5 if you want me to test. > > > Try this (warning: this only works in 32bpp, and will probably do > strange things with other color depths; it's a proof-of-concept). > > diff -Br -b -U 3 -N linux-2.6.5/drivers/video/aty/radeon_accel.c linux-2.6.5-new/drivers/video/aty/radeon_accel.c > --- linux-2.6.5/drivers/video/aty/radeon_accel.c 2004-02-18 04:58:34.000000000 +0100 > +++ linux-2.6.5-new/drivers/video/aty/radeon_accel.c 2004-04-07 22:40:41.000000000 +0200 > @@ -7,13 +7,16 @@ > static void radeonfb_prim_fillrect(struct radeonfb_info *rinfo, > const struct fb_fillrect *region) > { > + int color; > radeon_fifo_wait(4); > > OUTREG(DP_GUI_MASTER_CNTL, > rinfo->dp_gui_master_cntl /* contains, like GMC_DST_32BPP */ > | GMC_BRUSH_SOLID_COLOR > | ROP3_P); > - OUTREG(DP_BRUSH_FRGD_CLR, region->color); > + color = region->color | (region->color << 8); > + color = color | (color << 16); > + OUTREG(DP_BRUSH_FRGD_CLR, color); > OUTREG(DP_WRITE_MSK, 0xffffffff); > OUTREG(DP_CNTL, (DST_X_LEFT_TO_RIGHT | DST_Y_TOP_TO_BOTTOM)); > > Let me know if it works for you! Did you tried that it does not work on 16bpp? I would be really surprised if it did not work for 16/8bpp too. Maybe better to apply this patch and try it... Petr |
From: Jurriaan <thu...@xs...> - 2004-04-07 17:34:19
|
From: Petr Vandrovec <VAN...@vc...> Date: Wed, Apr 07, 2004 at 07:11:46PM +0200 > > I was able to reproduce it on my Compaq EVO with Radeon Mobility 7500. > > In 8bpp everything works correctly. In 32bpp "clear" immediately fills > screen with blue instead of white (if I get it correctly, it is actually > not clearing with blue: it clears with $CORRECT_BACKGROUND & BLUE). > In 16bpp it behaves randomly: sometime it clears with correct color, > sometime with $CORRECT_BACKGROUND & BLUE... Strangest is that going > with up arrow through bash history causes bash line displayed on essentially > random place - left to correct position, sometime even so left that it > is displayed on right side of screen one pixel up.... (I did not notice > this problem with 8/32bpp; 'fbset -accel false' has no impact on > behavior) > > Only thing worth noting is that it is on kernel with my matroxfb patches... > I do not know whether Jurriaan uses stock kernel or my patch. I use the stock kernel. Jurriaan -- She said, "Poor man. All you wanted to do here was leave your dead behind and make a mosaic overhead." "I was ... overly ambitious," he said. Guy Gavriel Kay - Lord of Emperors Debian (Unstable) GNU/Linux 2.6.5-mm1 2x6062 bogomips 1.36 1.16 |