[Mesa-dev] [Mesa-stable] [PATCH] mesa: etc2 online compression is unsupported, don't attempt it
Anuj Phogat
anuj.phogat at gmail.com
Sat Jul 9 00:16:01 UTC 2016
On Fri, Jul 8, 2016 at 3: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) ||
You're missing a patch adding _mesa_is_etc2_format() helper.
> compressedteximage_only_format(ctx, format);
> }
>
> --
> 2.7.3
>
> _______________________________________________
> mesa-stable mailing list
> mesa-stable at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-stable
More information about the mesa-dev
mailing list