Keith Whitwell wrote:
> Currently, the vbo-builder code will translate all immeidate mode 
> (glVertex/glColor/etc) calls to floats, but the types of arrays are 
> preserved.
> 
> In future, someone could add support for ubyte and other types to the
>  immediate/display list code, and maybe some of the vtxfmt assembly 
> optimizations (once cleaned up).
> 
> But for the meantime, you only get ubyte/ushort/whatever on the
> vertex array paths.  I imagine I'll have to add some options for
> drivers (and the swtnl paths) that really need floats.
That looks very reasonable. I'm not sure it's really worth bothering 
with not converting to floats for immediate/display list mode due to the 
problems you're facing when the app suddenly thinks it will now submit 
floats - of course you could convert that to whatever was used first 
(probably ubyte) but accuracy might suffer too much.

>> The r300 radeon_vtxfmt_a code avoids this (for vertex arrays, when
>> you know that all vertices have the same format), it would be nice
>> if this could be kept - though I guess nowadays when using vertex
>> programs more data is probably specified as floats anyway, and when
>> apps are using ARB_vbo the performance impact should be lower
>> (though the data will of course still use 4 times as much memory). 
>> The only drawback I can see right now to the current vtxfmt code of
>>  the radeons is that it potentially can't quite be as fast (with 
>> immediate mode), since the current vtxfmt code can copy the data 
>> directly to gart space. That seems a really small price to pay...
> 
> Well, in fact this new code can copy directly to gart as well,
> because (depending on the driver) the VBO can/should be sitting in
> the gart when it is mapped by the vbo_builder code to fill with
> vertices...
Ah all the better. I'd thought you were building the buffers in regular 
memory to be uploaded later by the driver (which has the advantage for 
software fallbacks you don't need to access uncached gart memory - 
though this might no longer be an issue with the ttm stuff).

Roland

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to