From: Gareth H. <ga...@va...> - 2001-02-07 01:42:38
|
Brian Paul wrote: > > How do power-of-two dimensions make for better optimization? > > It's the case when then the source image row stride equals the dest > image row stride and the stride equals the row length (all in bytes) > that you can simplify the conversion down to a single loop. > > As far as I see it, the only real difference between full image > conversion and sub-image conversion is that dest image stride > may not match the row length. We handle that now as-is. Sigh. I need some sleep... I've changed the parameters of the texsubimage call to take x, y, width, height and pitch (like the Utah-style conversion functions). Simple test of width == pitch is all we need, as you say. I'll add this to the tdfx-3-1-0 branch Mesa code today. -- Gareth |