Jerome Glisse wrote:
Hi,

I wanted to know how i can ask mesa to
give me the texture in a specified order.

i.e. actually mesa give me texture in
RGBA8888_REV
while i want it in RGBA8888

I have tried to have by specifing GL_UNSIGNED_INT_8_8_8_8_REV
to the format parameter of glTexImage2D
This effectively leads mesa to see
texture in rev order (i am in big
endian so it sees RGBA8888 not
RGBA8888_REV) but mesa do the
conversion and send me the texture
always in same order (RGBA8888_REV).


Thus what ever i put for format :
GL_UNSIGNED_INT_8_8_8_8_REV
or
GL_UNSIGNED_INT_8_8_8_8

I get the texture in the same format
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.

-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 [email protected] https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to