Index:
[thread]
[date]
[subject]
[author]
From: Marcus Sundberg <mackan@stacken.kth.se>
To : ggi-develop@eskimo.com
Date: Sat, 29 Aug 1998 14:40:56 +0000
Re: Mesa 3.0 - anyone really want patches? :) - and a DirectBuffer prob
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?
//Marcus
--
-------------------------------+------------------------------------
Marcus Sundberg | http://www.stacken.kth.se/~mackan/
Royal Institute of Technology | Phone: +46 707 295404
Stockholm, Sweden | E-Mail: mackan@stacken.kth.se
Index:
[thread]
[date]
[subject]
[author]