From: Gareth H. <gar...@ac...> - 2001-11-30 12:46:12
|
On Fri, Nov 30, 2001 at 01:48:16AM -0700, Derrik Pates wrote: > On 30 Nov 2001, Michel D=E4nzer wrote: >=20 > > I'll see to it that it gets fixed, but I'd like to check the docs for > > what the value should really be. I hope I'll get around to it this > > weekend. >=20 > Well, the tdfx driver uses 16 * pScrn->bitsPerPixel, and that's the val= ue > I've been using. 64 * pScrn->bitsPerPixel obviously can't be right, > it's why the X server wants a row with of 832 on this iBook, requiring = you > to jump through weird hoops to force it into doing the right thing. 32 = * > pScrn->bitsPerPixel should also work, unless I'm just not thinking of a= ny > "unusual" dimension modes that would require 16-pixel resolution to get > the right line width. >=20 > I'm actually surprised it's not just standardized across all the driver= s. If I remember correctly, the hardware requires pitches to be multiples of 64 (that's pixels, not bytes). It's been a while, but we don't do that sort of thing for nothing... -- Gareth |