in the driver (r300) i really would like to test all texture format, so is there a way to ask mesa to send me texture in a specific order (REV or not)
No. The <format> parameter describes the incoming format of the user's texture image. It may or may not have any bearing on which hardware format is chosen by the driver. More typically, the <internalFormat> parameter is used by the driver to choose the hardware texture format.
Not all the MESA_FORMAT_* texture formats are supported by all drivers.
I see. Brian, would you know - do we *have* to use _dri_texformat_xxx formats for hardware formats ?
It looks like the _dri_texformat_* variables are just pointers to the _mesa_texformat_* instances. You can use any of those, or invent new formats.
You just have to declare a struct gl_texture_format foobar variable and initialize all its fields. See texformat.[ch] and texformat_tmp.h for examples.
The reason I am asking is that R300 appears to support all (or almost all)
GL texture formats and it would not be too difficult to add this support,
but we are using R200 switch() due to lack of understanding of Mesa->driver interface.
Well, even if the hardware does support all the present Mesa texture formats doesn't mean you _have_ to use them all.
The end user isn't really going to care.
-Brian
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel