Commit 2658ae77 authored by Alejandro Piñeiro's avatar Alejandro Piñeiro

util-gl: add ARB_ES3_compatibility internalformats support

Values based on mesa format_info.h values.
Reviewed-by: Antía Puentes's avatarAntia Puentes <apuentes@igalia.com>
parent 24a92424
......@@ -410,6 +410,12 @@ piglit_get_compressed_block_size(GLenum format,
case GL_COMPRESSED_SIGNED_RED_RGTC1:
case GL_COMPRESSED_LUMINANCE_LATC1_EXT:
case GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT:
case GL_COMPRESSED_RGB8_ETC2:
case GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:
case GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:
case GL_COMPRESSED_R11_EAC:
case GL_COMPRESSED_SIGNED_R11_EAC:
case GL_COMPRESSED_SRGB8_ETC2:
*bw = *bh = 4;
*bytes = 8;
return true;
......@@ -426,6 +432,10 @@ piglit_get_compressed_block_size(GLenum format,
case GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM:
case GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT:
case GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT:
case GL_COMPRESSED_RGBA8_ETC2_EAC:
case GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:
case GL_COMPRESSED_RG11_EAC:
case GL_COMPRESSED_SIGNED_RG11_EAC:
*bw = *bh = 4;
*bytes = 16;
return true;
......
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