[Mesa-dev] [PATCH] mesa: etc2 online compression is unsupported, don't attempt it

Ilia Mirkin imirkin at alum.mit.edu
Wed Aug 16 15:01:19 UTC 2017


Well, that KHR bugzilla entry got deleted (by accident?), but I did
recently file a spec clarification/question issue in the new GitHub
tracker: https://github.com/KhronosGroup/OpenGL-API/issues/11

So far, the response is that we *should* support online ETC2
compression on desktop GL (and maybe even ASTC?). Just an FYI.

Cheers,

  -ilia


On Fri, Jul 8, 2016 at 6:42 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
> Cc: "11.2 12.0" <mesa-stable at lists.freedesktop.org>
> ---
>
> This is sort of pending a question to KHR at
>
> https://www.khronos.org/bugzilla/show_bug.cgi?id=1511
>
> but OTOH, no matter their answer, mesa doesn't have online compression for etc2. So we should reject those calls either way.
>
>  src/mesa/main/teximage.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
> index 26a6c21..81e46a1 100644
> --- a/src/mesa/main/teximage.c
> +++ b/src/mesa/main/teximage.c
> @@ -1307,6 +1307,7 @@ bool
>  _mesa_format_no_online_compression(const struct gl_context *ctx, GLenum format)
>  {
>     return _mesa_is_astc_format(format) ||
> +          _mesa_is_etc2_format(format) ||
>            compressedteximage_only_format(ctx, format);
>  }
>
> --
> 2.7.3
>


More information about the mesa-dev mailing list