[Mesa-dev] [PATCH 2/6] Add the format enums for BPTC-compressed images
idr at freedesktop.org
Wed Jul 23 14:57:41 PDT 2014
On 07/22/2014 12:09 PM, Neil Roberts wrote:
> diff --git a/src/mesa/main/texcompress.c b/src/mesa/main/texcompress.c
> index 9dbfe9f..b708b49 100644
> --- a/src/mesa/main/texcompress.c
> +++ b/src/mesa/main/texcompress.c
> @@ -235,6 +235,12 @@ _mesa_gl_compressed_format_base_format(GLenum format)
> * GL_EXT_texture_compression_latc. At the very least, Catalyst 11.6 does not
> * expose the 3dc formats through this mechanism.
> + * The spec for GL_ARB_texture_compression_bptc doesn't mention whether it
> + * should be included in GL_COMPRESSED_TEXTURE_FORMATS. However as it takes a
> + * very long time to compress the textures in this format it's probably not
> + * very useful as a general format where the GL will have to compress it on
> + * the fly.
> + *
What do NVIDIA and AMD do? We should mimic that.
> * \param ctx the GL context
> * \param formats the resulting format list (may be NULL).
More information about the mesa-dev