On Sat, 5 Mar 2005, Ben Skeggs wrote:

Vladimir Dergachev wrote:

It is easier to get the format right when you are adding it (and know which entry you are messing is), rather than add it blindly and then find out that a couple of components are in the wrong order.

I'm not entirely sure of how to correctly define the texture formats.

While I was messing with texenv's I made texenv.c printf what format it was using,
and changed the WARN_ONCE into a printf to find out all the missing formats.


I ended up adding something for entry 15, which corresponded to when texenv.c
was using GL_ALPHA.  I added R300_EASY_TX_FORMAT(W, X, X, X, ALPHA_1CH)
to get the result to *look* correct, but I don't know if it *is* correct.

To get the idea of what format is required look first at the old R200 table. For entry 15 it says _ALPHA(I8) . This means that we have 8-bit image, with single channel, I probably stands for intensity, and _ALPHA just toggles a bit in R200 indicating alpha channel is present.


Thus I would try one of these R300 variants:

   R300_EASY_TX_FORMAT(ONE, ONE, ONE, X, X8)

or

   R300_EASY_TX_FORMAT(X, X, X, X, X8)

One of these should look right and the other be either dimmer or lighter than intended.

                        best

                           Vladimir Dergachev


------------------------------------------------------- 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

Reply via email to