On 02/08/2013 09:35 AM, Brian Paul wrote:
On 02/07/2013 10:25 PM, Ian Romanick wrote:
On 01/31/2013 06:02 PM, Brian Paul wrote:
When glCompressedTexImage is called the internalFormat is a specific
format for the incoming image and the the hardware format should be
^^^^^^^
the same (since we never do format transcoding). So use the simpler

Not necessarily true. We convert ETC textures to other formats. Eric
even sent patches to the list to transcode ETC to S3TC or FXT1.

AFAICT, my patch won't effect the current code.  The intel driver seems
to use the general _mesa_choose_tex_format() function which translates
specific compressed format GLenums to MESA_FORMATs just like the
_mesa_glenum_to_compressed_format() function.

Okay.

In fact, it looks like the big switch at texformat.c:306 could be
replaced by a call to _mesa_glenum_to_compressed_format().

I've been slowly working on a patch series that makes pretty significant changes in that area. I should get those out for review in the not too distant future.

If you're going to do transcoding, I guess you'd have to do extra checks
in the driver's compressed teximage/store code to look
gl_texture_image::TexFormat, change it if needed, then do the transcode.

-Brian


_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to