Commit dcfea1d7 authored by Anuj Phogat's avatar Anuj Phogat
Browse files

mesa: Handle astc 3d formats in _mesa_base_tex_format()


Signed-off-by: Anuj Phogat's avatarAnuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Brian Paul's avatarBrian Paul <brianp@vmware.com>
parent cf85ef16
......@@ -2388,8 +2388,10 @@ _mesa_base_tex_format(const struct gl_context *ctx, GLint internalFormat)
return base_compressed;
}
if (ctx->Extensions.KHR_texture_compression_astc_ldr &&
_mesa_is_astc_format(internalFormat))
if ((ctx->Extensions.KHR_texture_compression_astc_ldr &&
is_astc_2d_format(internalFormat)) ||
(ctx->Extensions.OES_texture_compression_astc &&
is_astc_3d_format(internalFormat)))
return GL_RGBA;
if (ctx->Extensions.MESA_ycbcr_texture) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment