From: Brian P. <bri...@tu...> - 2005-02-19 23:48:15
|
Vladimir Dergachev wrote: >>> 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 |