From: Michel <mic...@ii...> - 2001-06-22 11:00:26
|
Geert Uytterhoeven wrote: > > On Fri, 22 Jun 2001, Michel Dänzer wrote: > > While this now works perfectly in X for both depth 15 and 16 as well as in > > console for fbset -depth 16 -rgba 5,5,5,0 , some colors are wrong for > > fbset -depth 16 -rgba 5,6,5,0 . It's not clear to me whether the palette > > for > > Funny, I have similar problems with atyfb and 565 (didn't manage to get X > working yet, since I still use 3.3.6 which seems to pass invalid parameters > when being `strict' in the color bitfield checking). I know, Michael Schmitz forwarded your patch to me, it helped me a lot, thanks. > > 565 should have 32 or 64 entries. > > 64 of course. But red and blue should fill the first 32 entries only. Okay, but why do you allocate a cmap with only 32 entries then? Do you extrapolate the missing green entries in this line? green = info->palette[(2*regno) & 0xff].green; ^^^^^^^^^^^^^^^^ I don't understand what this is supposed to do. As 0<regno<32, (2*regno) can't be greater than 255, so what's the 0xff for? > > BTW I'd love to work on adding Rage128 and Radeon support to the new > > atyfb. > > Please coordinate with Ani, he already started to work on that. Seems he and I are doing the same things a lot recently. :) -- Earthling Michel Dänzer (MrCooper) \ Debian GNU/Linux (powerpc) developer CS student, Free Software enthusiast \ XFree86 and DRI project member |