summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Piñeiro <apinheiro@igalia.com>2018-05-06 11:42:56 +0200
committerAlejandro Piñeiro <apinheiro@igalia.com>2018-05-09 09:05:19 +0200
commit2658ae7761056204eb4fa92cb4928a575fb88935 (patch)
tree904ad0c839af08e85c42e99a971aa1e17aa3a5ff
parent24a92424105372d67eff10ea1361902b32667da8 (diff)
util-gl: add ARB_ES3_compatibility internalformats support
Values based on mesa format_info.h values. Reviewed-by: Antia Puentes <apuentes@igalia.com>
-rw-r--r--tests/util/piglit-util-gl.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/util/piglit-util-gl.c b/tests/util/piglit-util-gl.c
index 3a41a5eb0..2443be03e 100644
--- a/tests/util/piglit-util-gl.c
+++ b/tests/util/piglit-util-gl.c
@@ -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;