[Piglit] [PATCH 4/5] khr_compressed_astc-miptree-array requires GL_ARB_ES3_compatibility

Anuj Phogat anuj.phogat at gmail.com
Mon Mar 21 18:54:12 UTC 2016


Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
---
 .../khr_compressed_astc-miptree-array.c                       | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/tests/spec/khr_texture_compression_astc/khr_compressed_astc-miptree-array.c b/tests/spec/khr_texture_compression_astc/khr_compressed_astc-miptree-array.c
index e332bad..2ee5626 100644
--- a/tests/spec/khr_texture_compression_astc/khr_compressed_astc-miptree-array.c
+++ b/tests/spec/khr_texture_compression_astc/khr_compressed_astc-miptree-array.c
@@ -84,7 +84,7 @@ PIGLIT_GL_TEST_CONFIG_END
  */
 static void
 load_texture(const char *dir1, const char *dir2,
-	const char *filename, GLuint *tex_name)
+	     const char *filename, GLuint *tex_name)
 {
 	struct piglit_ktx *ktx;
 	const struct piglit_ktx_info *info;
@@ -119,10 +119,10 @@ load_texture(const char *dir1, const char *dir2,
 	piglit_ktx_destroy(ktx);
 }
 
-/** Compares the compresseed texture against the decompressed texture */
+/** Compares the compressed textures from two layers of an array texture. */
 bool draw_compare_levels(GLint index,
-			GLint level_pixel_size_loc, GLint pixel_offset_loc,
-			GLuint compressed_tex)
+			 GLint level_pixel_size_loc, GLint pixel_offset_loc,
+			 GLuint compressed_tex)
 {
 	unsigned y = 0;
 	unsigned x = 0;
@@ -263,6 +263,9 @@ piglit_init(int argc, char **argv)
 
 	piglit_require_extension("GL_KHR_texture_compression_astc_ldr");
 
+	if (!piglit_is_gles())
+		piglit_require_extension("GL_ARB_ES3_compatibility");
+
 	glClearColor(0.9098, 0.8314, 0.7843, 1.0);
 	glViewport(0, 0, piglit_width, piglit_height);
 
-- 
2.5.0



More information about the Piglit mailing list