Index: [thread] [date] [subject] [author]
  From: teunis <teunis@computersupportcentre.com>
  To  : ggi-develop@eskimo.com
  Date: Mon, 31 Aug 1998 18:12:35 -0700 (MST)

Re: Mesa 3.0 - anyone really want patches? :) - and a DirectBuffer prob

On Sat, 29 Aug 1998, Marcus Sundberg wrote:

> teunis wrote:
> > 
> > Anyways I finally solved the problem...  Bit counts are now working (if
> > they didn't before... did they?).
> > 
> > So what's the _PROPER_ way to request stride (bytes per line!) from a
> > DirectBuffer?
> > I was using buf->buffer.plb.stride but it produced incorrect data....
> > (off by a factor of 2+ too high)
> >
> > I'm now using tm.virt.x and it works.... (even in 16bpp :)
> 
> Dont't do that! tm.virt.x is nothing like the stride. Even though
> it can be used that way in most cases it will break in others.
> 
> buf->buffer.plb.stride is _the_ stride, and if it doesn't work
> it must be fixed. What target/mode were you using?

Targets: SVGA, X11
Modes: 320x200, 640x480; 8bpp, 16bpp

I don't know what went wrong but using virtual.x solved it....  verry
weird.
Am still looking (on and off - very busy right now with moving 'n all)

G'day, eh? :)
	- Teunis

Index: [thread] [date] [subject] [author]