<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 16, 2015 at 1:43 PM, Nanley Chery <span dir="ltr"><<a href="mailto:nanleychery@gmail.com" target="_blank">nanleychery@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Nanley Chery <<a href="mailto:nanley.g.chery@intel.com">nanley.g.chery@intel.com</a>><br>
<br>
These tests run through every ASTC configuration, comparing the<br>
render of a compressed texture against a render of the decompressed<br>
version of that compressed texture. The compressed and decompressed<br>
texture was generated with a reference codec.<br>
<br>
v2. numerous changes (Chad).<br>
<br>
Signed-off-by: Nanley Chery <<a href="mailto:nanley.g.chery@intel.com">nanley.g.chery@intel.com</a>><br>
---<br>
tests/all.py | 2 +<br>
tests/spec/CMakeLists.txt | 1 +<br>
.../khr_texture_compression_astc/CMakeLists.gl.txt | 7 +<br>
.../CMakeLists.gles2.txt | 4 +<br>
.../khr_texture_compression_astc/CMakeLists.txt | 1 +<br>
.../compressed/hdr/waffles-10x10.ktx | Bin 0 -> 4000 bytes<br>
.../compressed/hdr/waffles-10x5.ktx | Bin 0 -> 7696 bytes<br>
.../compressed/hdr/waffles-10x6.ktx | Bin 0 -> 6336 bytes<br>
.../compressed/hdr/waffles-10x8.ktx | Bin 0 -> 4960 bytes<br>
.../compressed/hdr/waffles-12x10.ktx | Bin 0 -> 3552 bytes<br>
.../compressed/hdr/waffles-12x12.ktx | Bin 0 -> 2992 bytes<br>
.../compressed/hdr/waffles-4x4.ktx | Bin 0 -> 23456 bytes<br>
.../compressed/hdr/waffles-5x4.ktx | Bin 0 -> 18768 bytes<br>
.../compressed/hdr/waffles-5x5.ktx | Bin 0 -> 15248 bytes<br>
.../compressed/hdr/waffles-6x5.ktx | Bin 0 -> 13040 bytes<br>
.../compressed/hdr/waffles-6x6.ktx | Bin 0 -> 10720 bytes<br>
.../compressed/hdr/waffles-8x5.ktx | Bin 0 -> 9632 bytes<br>
.../compressed/hdr/waffles-8x6.ktx | Bin 0 -> 7920 bytes<br>
.../compressed/hdr/waffles-8x8.ktx | Bin 0 -> 6192 bytes<br>
.../compressed/ldrl/waffles-10x10.ktx | Bin 0 -> 4000 bytes<br>
.../compressed/ldrl/waffles-10x5.ktx | Bin 0 -> 7696 bytes<br>
.../compressed/ldrl/waffles-10x6.ktx | Bin 0 -> 6336 bytes<br>
.../compressed/ldrl/waffles-10x8.ktx | Bin 0 -> 4960 bytes<br>
.../compressed/ldrl/waffles-12x10.ktx | Bin 0 -> 3552 bytes<br>
.../compressed/ldrl/waffles-12x12.ktx | Bin 0 -> 2992 bytes<br>
.../compressed/ldrl/waffles-4x4.ktx | Bin 0 -> 23456 bytes<br>
.../compressed/ldrl/waffles-5x4.ktx | Bin 0 -> 18768 bytes<br>
.../compressed/ldrl/waffles-5x5.ktx | Bin 0 -> 15248 bytes<br>
.../compressed/ldrl/waffles-6x5.ktx | Bin 0 -> 13040 bytes<br>
.../compressed/ldrl/waffles-6x6.ktx | Bin 0 -> 10720 bytes<br>
.../compressed/ldrl/waffles-8x5.ktx | Bin 0 -> 9632 bytes<br>
.../compressed/ldrl/waffles-8x6.ktx | Bin 0 -> 7920 bytes<br>
.../compressed/ldrl/waffles-8x8.ktx | Bin 0 -> 6192 bytes<br>
.../compressed/ldrs/waffles-10x10.ktx | Bin 0 -> 4000 bytes<br>
.../compressed/ldrs/waffles-10x5.ktx | Bin 0 -> 7696 bytes<br>
.../compressed/ldrs/waffles-10x6.ktx | Bin 0 -> 6336 bytes<br>
.../compressed/ldrs/waffles-10x8.ktx | Bin 0 -> 4960 bytes<br>
.../compressed/ldrs/waffles-12x10.ktx | Bin 0 -> 3552 bytes<br>
.../compressed/ldrs/waffles-12x12.ktx | Bin 0 -> 2992 bytes<br>
.../compressed/ldrs/waffles-4x4.ktx | Bin 0 -> 23456 bytes<br>
.../compressed/ldrs/waffles-5x4.ktx | Bin 0 -> 18768 bytes<br>
.../compressed/ldrs/waffles-5x5.ktx | Bin 0 -> 15248 bytes<br>
.../compressed/ldrs/waffles-6x5.ktx | Bin 0 -> 13040 bytes<br>
.../compressed/ldrs/waffles-6x6.ktx | Bin 0 -> 10720 bytes<br>
.../compressed/ldrs/waffles-8x5.ktx | Bin 0 -> 9632 bytes<br>
.../compressed/ldrs/waffles-8x6.ktx | Bin 0 -> 7920 bytes<br>
.../compressed/ldrs/waffles-8x8.ktx | Bin 0 -> 6192 bytes<br>
.../decompressed/hdr/waffles-10x10.ktx | Bin 0 -> 135572 bytes<br>
.../decompressed/hdr/waffles-10x5.ktx | Bin 0 -> 135572 bytes<br>
.../decompressed/hdr/waffles-10x6.ktx | Bin 0 -> 135572 bytes<br>
.../decompressed/hdr/waffles-10x8.ktx | Bin 0 -> 135572 bytes<br>
.../decompressed/hdr/waffles-12x10.ktx | Bin 0 -> 135572 bytes<br>
.../decompressed/hdr/waffles-12x12.ktx | Bin 0 -> 135572 bytes<br>
.../decompressed/hdr/waffles-4x4.ktx | Bin 0 -> 135572 bytes<br>
.../decompressed/hdr/waffles-5x4.ktx | Bin 0 -> 135572 bytes<br>
.../decompressed/hdr/waffles-5x5.ktx | Bin 0 -> 135572 bytes<br>
.../decompressed/hdr/waffles-6x5.ktx | Bin 0 -> 135572 bytes<br>
.../decompressed/hdr/waffles-6x6.ktx | Bin 0 -> 135572 bytes<br>
.../decompressed/hdr/waffles-8x5.ktx | Bin 0 -> 135572 bytes<br>
.../decompressed/hdr/waffles-8x6.ktx | Bin 0 -> 135572 bytes<br>
.../decompressed/hdr/waffles-8x8.ktx | Bin 0 -> 135572 bytes<br>
.../decompressed/ldrl/waffles-10x10.ktx | Bin 0 -> 67848 bytes<br>
.../decompressed/ldrl/waffles-10x5.ktx | Bin 0 -> 67848 bytes<br>
.../decompressed/ldrl/waffles-10x6.ktx | Bin 0 -> 67848 bytes<br>
.../decompressed/ldrl/waffles-10x8.ktx | Bin 0 -> 67848 bytes<br>
.../decompressed/ldrl/waffles-12x10.ktx | Bin 0 -> 67848 bytes<br>
.../decompressed/ldrl/waffles-12x12.ktx | Bin 0 -> 67848 bytes<br>
.../decompressed/ldrl/waffles-4x4.ktx | Bin 0 -> 67848 bytes<br>
.../decompressed/ldrl/waffles-5x4.ktx | Bin 0 -> 67848 bytes<br>
.../decompressed/ldrl/waffles-5x5.ktx | Bin 0 -> 67848 bytes<br>
.../decompressed/ldrl/waffles-6x5.ktx | Bin 0 -> 67848 bytes<br>
.../decompressed/ldrl/waffles-6x6.ktx | Bin 0 -> 67848 bytes<br>
.../decompressed/ldrl/waffles-8x5.ktx | Bin 0 -> 67848 bytes<br>
.../decompressed/ldrl/waffles-8x6.ktx | Bin 0 -> 67848 bytes<br>
.../decompressed/ldrl/waffles-8x8.ktx | Bin 0 -> 67848 bytes<br>
.../decompressed/ldrs/waffles-10x10.ktx | Bin 0 -> 90408 bytes<br>
.../decompressed/ldrs/waffles-10x5.ktx | Bin 0 -> 90408 bytes<br>
.../decompressed/ldrs/waffles-10x6.ktx | Bin 0 -> 90408 bytes<br>
.../decompressed/ldrs/waffles-10x8.ktx | Bin 0 -> 90408 bytes<br>
.../decompressed/ldrs/waffles-12x10.ktx | Bin 0 -> 90408 bytes<br>
.../decompressed/ldrs/waffles-12x12.ktx | Bin 0 -> 90408 bytes<br>
.../decompressed/ldrs/waffles-4x4.ktx | Bin 0 -> 90408 bytes<br>
.../decompressed/ldrs/waffles-5x4.ktx | Bin 0 -> 90408 bytes<br>
.../decompressed/ldrs/waffles-5x5.ktx | Bin 0 -> 90408 bytes<br>
.../decompressed/ldrs/waffles-6x5.ktx | Bin 0 -> 90408 bytes<br>
.../decompressed/ldrs/waffles-6x6.ktx | Bin 0 -> 90408 bytes<br>
.../decompressed/ldrs/waffles-8x5.ktx | Bin 0 -> 90408 bytes<br>
.../decompressed/ldrs/waffles-8x6.ktx | Bin 0 -> 90408 bytes<br>
.../decompressed/ldrs/waffles-8x8.ktx | Bin 0 -> 90408 bytes<br>
.../khr_compressed_astc-miptree.c | 393 +++++++++++++++++++++<br>
90 files changed, 408 insertions(+)<br>
create mode 100644 tests/spec/khr_texture_compression_astc/CMakeLists.gl.txt<br>
create mode 100644 tests/spec/khr_texture_compression_astc/CMakeLists.gles2.txt<br>
create mode 100644 tests/spec/khr_texture_compression_astc/CMakeLists.txt<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-10x10.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-10x5.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-10x6.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-10x8.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-12x10.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-12x12.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-4x4.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-5x4.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-5x5.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-6x5.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-6x6.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-8x5.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-8x6.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-8x8.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-10x10.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-10x5.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-10x6.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-10x8.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-12x10.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-12x12.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-4x4.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-5x4.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-5x5.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-6x5.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-6x6.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-8x5.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-8x6.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-8x8.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-10x10.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-10x5.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-10x6.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-10x8.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-12x10.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-12x12.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-4x4.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-5x4.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-5x5.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-6x5.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-6x6.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-8x5.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-8x6.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-8x8.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-10x10.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-10x5.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-10x6.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-10x8.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-12x10.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-12x12.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-4x4.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-5x4.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-5x5.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-6x5.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-6x6.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-8x5.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-8x6.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-8x8.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-10x10.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-10x5.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-10x6.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-10x8.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-12x10.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-12x12.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-4x4.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-5x4.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-5x5.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-6x5.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-6x6.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-8x5.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-8x6.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-8x8.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-10x10.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-10x5.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-10x6.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-10x8.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-12x10.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-12x12.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-4x4.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-5x4.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-5x5.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-6x5.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-6x6.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-8x5.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-8x6.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-8x8.ktx<br>
create mode 100644 tests/spec/khr_texture_compression_astc/khr_compressed_astc-miptree.c<br>
<br>
diff --git a/tests/all.py b/tests/all.py<br>
index 748e27e..c6951a2 100644<br>
--- a/tests/all.py<br>
+++ b/tests/all.py<br>
@@ -4157,6 +4157,8 @@ with profile.group_manager(<br>
PiglitGLTest,<br>
grouptools.join('spec', 'khr_texture_compression_astc')) as g:<br>
g(['arb_texture_compression-invalid-formats', 'astc'], 'invalid formats')<br>
+ g(['khr_compressed_astc-miptree_gl'], 'miptree-gl')<br>
+ g(['khr_compressed_astc-miptree_gles2'], 'miptree-gles')<br>
<br>
with profile.group_manager(<br>
PiglitGLTest,<br>
diff --git a/tests/spec/CMakeLists.txt b/tests/spec/CMakeLists.txt<br>
index eeb883d..5dc37a1 100644<br>
--- a/tests/spec/CMakeLists.txt<br>
+++ b/tests/spec/CMakeLists.txt<br>
@@ -11,6 +11,7 @@ add_subdirectory (arb_compute_shader)<br>
add_subdirectory (arb_cull_distance)<br>
add_subdirectory (arb_debug_output)<br>
add_subdirectory (khr_debug)<br>
+add_subdirectory (khr_texture_compression_astc)<br>
add_subdirectory (arb_depth_clamp)<br>
add_subdirectory (arb_draw_indirect)<br>
add_subdirectory (arb_draw_instanced)<br>
diff --git a/tests/spec/khr_texture_compression_astc/CMakeLists.gl.txt b/tests/spec/khr_texture_compression_astc/CMakeLists.gl.txt<br>
new file mode 100644<br>
index 0000000..5a86e6c<br>
--- /dev/null<br>
+++ b/tests/spec/khr_texture_compression_astc/CMakeLists.gl.txt<br>
@@ -0,0 +1,7 @@<br>
+link_libraries (<br>
+ piglitutil_${piglit_target_api}<br>
+)<br>
+<br>
+piglit_add_executable(khr_compressed_astc-miptree_${piglit_target_api} khr_compressed_astc-miptree.c)<br>
+<br>
+# vim: ft=cmake:<br>
diff --git a/tests/spec/khr_texture_compression_astc/CMakeLists.gles2.txt b/tests/spec/khr_texture_compression_astc/CMakeLists.gles2.txt<br>
new file mode 100644<br>
index 0000000..83bd3e7<br>
--- /dev/null<br>
+++ b/tests/spec/khr_texture_compression_astc/CMakeLists.gles2.txt<br>
@@ -0,0 +1,4 @@<br>
+link_libraries(piglitutil_${piglit_target_api})<br>
+piglit_add_executable(khr_compressed_astc-miptree_${piglit_target_api} khr_compressed_astc-miptree.c)<br>
+<br>
+# vim: ft=cmake:<br>
diff --git a/tests/spec/khr_texture_compression_astc/CMakeLists.txt b/tests/spec/khr_texture_compression_astc/CMakeLists.txt<br>
new file mode 100644<br>
index 0000000..144a306<br>
--- /dev/null<br>
+++ b/tests/spec/khr_texture_compression_astc/CMakeLists.txt<br>
@@ -0,0 +1 @@<br>
+piglit_include_target_api()<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-10x10.ktx b/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-10x10.ktx<br>
new file mode 100644<br>
index 0000000..b70182c<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-10x10.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-10x5.ktx b/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-10x5.ktx<br>
new file mode 100644<br>
index 0000000..4c5fe8d<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-10x5.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-10x6.ktx b/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-10x6.ktx<br>
new file mode 100644<br>
index 0000000..35b8ae6<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-10x6.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-10x8.ktx b/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-10x8.ktx<br>
new file mode 100644<br>
index 0000000..915e518<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-10x8.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-12x10.ktx b/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-12x10.ktx<br>
new file mode 100644<br>
index 0000000..c145769<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-12x10.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-12x12.ktx b/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-12x12.ktx<br>
new file mode 100644<br>
index 0000000..bc6adb0<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-12x12.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-4x4.ktx b/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-4x4.ktx<br>
new file mode 100644<br>
index 0000000..e135d97<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-4x4.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-5x4.ktx b/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-5x4.ktx<br>
new file mode 100644<br>
index 0000000..563fa21<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-5x4.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-5x5.ktx b/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-5x5.ktx<br>
new file mode 100644<br>
index 0000000..7c3f26f<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-5x5.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-6x5.ktx b/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-6x5.ktx<br>
new file mode 100644<br>
index 0000000..b74a787<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-6x5.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-6x6.ktx b/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-6x6.ktx<br>
new file mode 100644<br>
index 0000000..1dbd18a<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-6x6.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-8x5.ktx b/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-8x5.ktx<br>
new file mode 100644<br>
index 0000000..bd46e7e<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-8x5.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-8x6.ktx b/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-8x6.ktx<br>
new file mode 100644<br>
index 0000000..0602b95<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-8x6.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-8x8.ktx b/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-8x8.ktx<br>
new file mode 100644<br>
index 0000000..609fcbf<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-8x8.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-10x10.ktx b/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-10x10.ktx<br>
new file mode 100644<br>
index 0000000..3ff453b<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-10x10.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-10x5.ktx b/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-10x5.ktx<br>
new file mode 100644<br>
index 0000000..ebea223<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-10x5.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-10x6.ktx b/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-10x6.ktx<br>
new file mode 100644<br>
index 0000000..1eaa6a3<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-10x6.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-10x8.ktx b/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-10x8.ktx<br>
new file mode 100644<br>
index 0000000..fd30cf7<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-10x8.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-12x10.ktx b/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-12x10.ktx<br>
new file mode 100644<br>
index 0000000..5af4be0<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-12x10.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-12x12.ktx b/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-12x12.ktx<br>
new file mode 100644<br>
index 0000000..21bfc9f<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-12x12.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-4x4.ktx b/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-4x4.ktx<br>
new file mode 100644<br>
index 0000000..6623e5f<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-4x4.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-5x4.ktx b/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-5x4.ktx<br>
new file mode 100644<br>
index 0000000..b7a8ef8<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-5x4.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-5x5.ktx b/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-5x5.ktx<br>
new file mode 100644<br>
index 0000000..3d7e2c1<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-5x5.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-6x5.ktx b/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-6x5.ktx<br>
new file mode 100644<br>
index 0000000..fa1df5f<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-6x5.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-6x6.ktx b/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-6x6.ktx<br>
new file mode 100644<br>
index 0000000..9b31ea8<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-6x6.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-8x5.ktx b/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-8x5.ktx<br>
new file mode 100644<br>
index 0000000..b696ca4<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-8x5.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-8x6.ktx b/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-8x6.ktx<br>
new file mode 100644<br>
index 0000000..3c49aa3<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-8x6.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-8x8.ktx b/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-8x8.ktx<br>
new file mode 100644<br>
index 0000000..0610539<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-8x8.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-10x10.ktx b/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-10x10.ktx<br>
new file mode 100644<br>
index 0000000..0323acc<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-10x10.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-10x5.ktx b/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-10x5.ktx<br>
new file mode 100644<br>
index 0000000..43fcf49<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-10x5.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-10x6.ktx b/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-10x6.ktx<br>
new file mode 100644<br>
index 0000000..3dcb88a<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-10x6.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-10x8.ktx b/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-10x8.ktx<br>
new file mode 100644<br>
index 0000000..4009a6e<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-10x8.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-12x10.ktx b/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-12x10.ktx<br>
new file mode 100644<br>
index 0000000..fac6832<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-12x10.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-12x12.ktx b/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-12x12.ktx<br>
new file mode 100644<br>
index 0000000..1fad47d<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-12x12.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-4x4.ktx b/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-4x4.ktx<br>
new file mode 100644<br>
index 0000000..580e37b<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-4x4.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-5x4.ktx b/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-5x4.ktx<br>
new file mode 100644<br>
index 0000000..bec98b3<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-5x4.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-5x5.ktx b/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-5x5.ktx<br>
new file mode 100644<br>
index 0000000..7be4e48<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-5x5.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-6x5.ktx b/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-6x5.ktx<br>
new file mode 100644<br>
index 0000000..7842300<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-6x5.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-6x6.ktx b/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-6x6.ktx<br>
new file mode 100644<br>
index 0000000..9843913<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-6x6.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-8x5.ktx b/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-8x5.ktx<br>
new file mode 100644<br>
index 0000000..21f50c8<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-8x5.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-8x6.ktx b/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-8x6.ktx<br>
new file mode 100644<br>
index 0000000..88f4553<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-8x6.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-8x8.ktx b/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-8x8.ktx<br>
new file mode 100644<br>
index 0000000..1370f6e<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-8x8.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-10x10.ktx b/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-10x10.ktx<br>
new file mode 100644<br>
index 0000000..2c23cae<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-10x10.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-10x5.ktx b/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-10x5.ktx<br>
new file mode 100644<br>
index 0000000..d7fde2a<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-10x5.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-10x6.ktx b/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-10x6.ktx<br>
new file mode 100644<br>
index 0000000..6ce0b11<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-10x6.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-10x8.ktx b/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-10x8.ktx<br>
new file mode 100644<br>
index 0000000..002d98e<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-10x8.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-12x10.ktx b/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-12x10.ktx<br>
new file mode 100644<br>
index 0000000..401259f<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-12x10.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-12x12.ktx b/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-12x12.ktx<br>
new file mode 100644<br>
index 0000000..b7e4fc1<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-12x12.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-4x4.ktx b/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-4x4.ktx<br>
new file mode 100644<br>
index 0000000..32380df<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-4x4.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-5x4.ktx b/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-5x4.ktx<br>
new file mode 100644<br>
index 0000000..0bffd32<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-5x4.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-5x5.ktx b/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-5x5.ktx<br>
new file mode 100644<br>
index 0000000..44e08bc<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-5x5.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-6x5.ktx b/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-6x5.ktx<br>
new file mode 100644<br>
index 0000000..ada9cf7<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-6x5.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-6x6.ktx b/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-6x6.ktx<br>
new file mode 100644<br>
index 0000000..e0bb420<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-6x6.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-8x5.ktx b/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-8x5.ktx<br>
new file mode 100644<br>
index 0000000..80a7c81<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-8x5.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-8x6.ktx b/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-8x6.ktx<br>
new file mode 100644<br>
index 0000000..c6b64bc<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-8x6.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-8x8.ktx b/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-8x8.ktx<br>
new file mode 100644<br>
index 0000000..4f8e3f8<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-8x8.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-10x10.ktx b/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-10x10.ktx<br>
new file mode 100644<br>
index 0000000..ba94085<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-10x10.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-10x5.ktx b/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-10x5.ktx<br>
new file mode 100644<br>
index 0000000..32d733d<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-10x5.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-10x6.ktx b/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-10x6.ktx<br>
new file mode 100644<br>
index 0000000..ef97182<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-10x6.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-10x8.ktx b/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-10x8.ktx<br>
new file mode 100644<br>
index 0000000..c5cc8b0<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-10x8.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-12x10.ktx b/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-12x10.ktx<br>
new file mode 100644<br>
index 0000000..5c9ad8b<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-12x10.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-12x12.ktx b/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-12x12.ktx<br>
new file mode 100644<br>
index 0000000..530c73a<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-12x12.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-4x4.ktx b/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-4x4.ktx<br>
new file mode 100644<br>
index 0000000..3058bc0<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-4x4.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-5x4.ktx b/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-5x4.ktx<br>
new file mode 100644<br>
index 0000000..61ab537<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-5x4.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-5x5.ktx b/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-5x5.ktx<br>
new file mode 100644<br>
index 0000000..76c770e<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-5x5.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-6x5.ktx b/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-6x5.ktx<br>
new file mode 100644<br>
index 0000000..4ad442d<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-6x5.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-6x6.ktx b/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-6x6.ktx<br>
new file mode 100644<br>
index 0000000..0db9ad0<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-6x6.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-8x5.ktx b/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-8x5.ktx<br>
new file mode 100644<br>
index 0000000..c5a8d88<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-8x5.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-8x6.ktx b/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-8x6.ktx<br>
new file mode 100644<br>
index 0000000..23ea6e4<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-8x6.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-8x8.ktx b/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-8x8.ktx<br>
new file mode 100644<br>
index 0000000..73340a7<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-8x8.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-10x10.ktx b/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-10x10.ktx<br>
new file mode 100644<br>
index 0000000..5929725<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-10x10.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-10x5.ktx b/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-10x5.ktx<br>
new file mode 100644<br>
index 0000000..5d9d578<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-10x5.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-10x6.ktx b/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-10x6.ktx<br>
new file mode 100644<br>
index 0000000..87aff56<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-10x6.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-10x8.ktx b/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-10x8.ktx<br>
new file mode 100644<br>
index 0000000..01d3f8d<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-10x8.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-12x10.ktx b/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-12x10.ktx<br>
new file mode 100644<br>
index 0000000..353d829<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-12x10.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-12x12.ktx b/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-12x12.ktx<br>
new file mode 100644<br>
index 0000000..3139831<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-12x12.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-4x4.ktx b/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-4x4.ktx<br>
new file mode 100644<br>
index 0000000..e0be0d3<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-4x4.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-5x4.ktx b/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-5x4.ktx<br>
new file mode 100644<br>
index 0000000..f73da88<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-5x4.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-5x5.ktx b/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-5x5.ktx<br>
new file mode 100644<br>
index 0000000..f5bb6ab<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-5x5.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-6x5.ktx b/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-6x5.ktx<br>
new file mode 100644<br>
index 0000000..ef71578<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-6x5.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-6x6.ktx b/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-6x6.ktx<br>
new file mode 100644<br>
index 0000000..1d7933d<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-6x6.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-8x5.ktx b/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-8x5.ktx<br>
new file mode 100644<br>
index 0000000..b405ad0<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-8x5.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-8x6.ktx b/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-8x6.ktx<br>
new file mode 100644<br>
index 0000000..6b39798<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-8x6.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-8x8.ktx b/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-8x8.ktx<br>
new file mode 100644<br>
index 0000000..9816818<br>
Binary files /dev/null and b/tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-8x8.ktx differ<br>
diff --git a/tests/spec/khr_texture_compression_astc/khr_compressed_astc-miptree.c b/tests/spec/khr_texture_compression_astc/khr_compressed_astc-miptree.c<br>
new file mode 100644<br>
index 0000000..49b9403<br>
--- /dev/null<br>
+++ b/tests/spec/khr_texture_compression_astc/khr_compressed_astc-miptree.c<br>
@@ -0,0 +1,393 @@<br>
+/*<br>
+ * Copyright 2015 Intel Corporation<br>
+ *<br>
+ * Permission is hereby granted, free of charge, to any person obtaining a<br>
+ * copy of this software and associated documentation files (the "Software"),<br>
+ * to deal in the Software without restriction, including without limitation<br>
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,<br>
+ * and/or sell copies of the Software, and to permit persons to whom the<br>
+ * Software is furnished to do so, subject to the following conditions:<br>
+ *<br>
+ * The above copyright notice and this permission notice (including the next<br>
+ * paragraph) shall be included in all copies or substantial portions of the<br>
+ * Software.<br>
+ *<br>
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR<br>
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,<br>
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL<br>
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER<br>
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING<br>
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER<br>
+ * DEALINGS IN THE SOFTWARE.<br>
+ */<br>
+<br>
+/**<br>
+ * \file<br>
+ * \brief Test texturing from an ASTC miptree of a real image.<br>
+ *<br>
+ * This test is an adaptation of the oes_compressed_etc1_rgb8_textures test.<br>
+ *<br>
+ * The files under compressed/ contain full miptrees, in the<br>
+ * GL_*_ASTC_* formats, of a 2D texture of waffles and fruit [1]. The base<br>
+ * level size was shrunken to 160x106 pixels. The files under the decompressed<br>
+ * directory contain the same miptree in GL_RGBA format. Each miplevel was<br>
+ * obtained by decompressing the corresponding ASTC texture with astcenc [2].<br>
+ *<br>
+ * This test draws miplevels of the compressed textures in a space-efficient<br>
+ * manner It does the same when drawing the decompressed texture on the right.<br>
+ * Each miplevel of both images are compared for equality after being drawn.<br>
+ *<br>
+ * [1] The reference image is located at <a href="http://people.freedesktop.org/~chadversary/permalink/2012-07-09/1574cff2-d091-4421-a3cf-b56c7943d060.jpg" rel="noreferrer" target="_blank">http://people.freedesktop.org/~chadversary/permalink/2012-07-09/1574cff2-d091-4421-a3cf-b56c7943d060.jpg</a>.<br>
+ * [2] astcenc is the reference ASTC compression tool, available at <a href="http://malideveloper.arm.com/develop-for-mali/tools/software-tools/astc-evaluation-codec/" rel="noreferrer" target="_blank">http://malideveloper.arm.com/develop-for-mali/tools/software-tools/astc-evaluation-codec/</a>.<br>
+ */<br>
+<br>
+#include "piglit-util-gl.h"<br>
+#include "piglit_ktx.h"<br>
+<br>
+#define NUM_LEVELS 8<br>
+#define LEVEL0_WIDTH 160<br>
+#define LEVEL0_HEIGHT 106<br>
+<br>
+#define NUM_VERTICES 4<br>
+<br>
+static GLuint prog;<br>
+<br>
+static struct piglit_gl_test_config *piglit_config;<br>
+<br>
+enum test_type<br>
+{<br>
+ TEST_TYPE_HDR,<br>
+ TEST_TYPE_LDR,<br>
+ TEST_TYPE_SRGB,<br>
+};<br>
+<br>
+enum piglit_result<br>
+test_miptrees(void* input_type);<br>
+<br>
+static enum test_type ldr_test = TEST_TYPE_LDR;<br>
+static enum test_type hdr_test = TEST_TYPE_HDR;<br>
+static enum test_type srgb_test = TEST_TYPE_SRGB;<br>
+static const struct piglit_subtest subtests[] = {<br>
+ {<br>
+ "LDR Profile",<br>
+ "ldr",<br>
+ test_miptrees,<br>
+ &ldr_test,<br>
+ },<br>
+ {<br>
+ "HDR Profile",<br>
+ "hdr",<br>
+ test_miptrees,<br>
+ &hdr_test,<br>
+ },<br>
+ {<br>
+ "sRGB decode",<br>
+ "srgb",<br>
+ test_miptrees,<br>
+ &srgb_test,<br>
+ },<br>
+ {NULL},<br>
+};<br>
+<br>
+PIGLIT_GL_TEST_CONFIG_BEGIN<br>
+<br>
+ piglit_config = &config;<br>
+ config.supports_gl_compat_version = 11;<br>
+ config.supports_gl_es_version = 10;<br>
+<br></blockquote><div>I've updated the gles version to 20 locally for this and other ASTC commits. This is required because Mesa only enables this extension for GLES2 and up.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+ config.window_width = 2 * LEVEL0_WIDTH;<br>
+ config.window_height = LEVEL0_HEIGHT + (LEVEL0_HEIGHT >> 1);<br>
+ config.window_visual = PIGLIT_GL_VISUAL_RGB | PIGLIT_GL_VISUAL_DOUBLE;<br>
+<br>
+ config.subtests = subtests;<br>
+<br>
+PIGLIT_GL_TEST_CONFIG_END<br>
+<br>
+<br>
+/**<br>
+ * The \a filename is relative to the current test's source directory.<br>
+ *<br>
+ * A new texture is created and returned in \a tex_name.<br>
+ */<br>
+static void<br>
+load_texture(const char *dir1, const char *dir2,<br>
+ const char *block_dim_str, GLuint *tex_name)<br>
+{<br>
+ struct piglit_ktx *ktx;<br>
+ const struct piglit_ktx_info *info;<br>
+ char filepath[4096];<br>
+ char cur_file[20];<br>
+ bool ok = true;<br>
+<br>
+ /* Generate filename for compressed texture */<br>
+ snprintf(cur_file, sizeof(cur_file), "waffles-%s.ktx",<br>
+ block_dim_str);<br>
+<br>
+ piglit_join_paths(filepath, sizeof(filepath), 7,<br>
+ piglit_source_dir(),<br>
+ "tests",<br>
+ "spec",<br>
+ "khr_texture_compression_astc",<br>
+ dir1,<br>
+ dir2,<br>
+ cur_file);<br>
+<br>
+ ktx = piglit_ktx_read_file(filepath);<br>
+ if (ktx == NULL)<br>
+ piglit_report_result(PIGLIT_FAIL);<br>
+<br>
+ info = piglit_ktx_get_info(ktx);<br>
+ assert(info->num_miplevels == NUM_LEVELS);<br>
+ assert(info->target == GL_TEXTURE_2D);<br>
+ assert(info->pixel_width == LEVEL0_WIDTH);<br>
+ assert(info->pixel_height == LEVEL0_HEIGHT);<br>
+<br>
+ *tex_name = 0;<br>
+ ok = piglit_ktx_load_texture(ktx, tex_name, NULL);<br>
+ if (!ok)<br>
+ piglit_report_result(PIGLIT_FAIL);<br>
+<br>
+ piglit_ktx_destroy(ktx);<br>
+}<br>
+<br>
+/** Compares the compressed texture against the decompressed texture */<br>
+bool draw_compare_levels(bool check_error, bool check_srgb,<br>
+ GLint level_pixel_size_loc, GLint pixel_offset_loc,<br>
+ GLuint compressed_tex, GLuint decompressed_tex)<br>
+{<br>
+ /* Fully-saturated magenta */<br>
+ static const float error_color[4] = {1.0, 0.0, 1.0, 1.0};<br>
+<br>
+ unsigned y = 0;<br>
+ unsigned x = 0;<br>
+ bool pass = true;<br>
+ int level = 0;<br>
+<br>
+ for (; level < NUM_LEVELS; ++level) {<br>
+ int w = LEVEL0_WIDTH >> level;<br>
+ int h = LEVEL0_HEIGHT >> level;<br>
+ glUniform2f(level_pixel_size_loc, (float) w, (float) h);<br>
+<br>
+<br>
+ /* Draw miplevel of compressed texture. */<br>
+ glBindTexture(GL_TEXTURE_2D, compressed_tex);<br>
+ if (!check_srgb)<br>
+ glTexParameteri(GL_TEXTURE_2D,<br>
+ GL_TEXTURE_SRGB_DECODE_EXT,<br>
+ GL_SKIP_DECODE_EXT);<br>
+ glUniform2f(pixel_offset_loc, x, y);<br>
+ glDrawArrays(GL_TRIANGLE_FAN, 0, NUM_VERTICES);<br>
+<br>
+ /* Draw miplevel of decompressed texture. */<br>
+ if (!check_error) {<br>
+ glBindTexture(GL_TEXTURE_2D, decompressed_tex);<br>
+ if (!check_srgb)<br>
+ glTexParameteri(GL_TEXTURE_2D,<br>
+ GL_TEXTURE_SRGB_DECODE_EXT,<br>
+ GL_SKIP_DECODE_EXT);<br>
+ glUniform2f(pixel_offset_loc, LEVEL0_WIDTH + x, y);<br>
+ glDrawArrays(GL_TRIANGLE_FAN, 0, NUM_VERTICES);<br>
+ }<br>
+<br>
+ /* Check the textures (or error-colors) for equivalence. */<br>
+ if (pass) {<br>
+ if (check_error) {<br>
+ pass = piglit_probe_rect_rgba(x, y, w, h,<br>
+ error_color);<br>
+ } else {<br>
+ pass = piglit_probe_rects_equal(x, y,<br>
+ LEVEL0_WIDTH + x, y,<br>
+ w, h, GL_RGBA);<br>
+ }<br>
+<br>
+ if (!pass)<br>
+ piglit_loge("Miplevel %d", level);<br>
+ }<br>
+<br>
+ /* Update the next miplevel arrangement */<br>
+ if (level == 1)<br>
+ x += w;<br>
+ else<br>
+ y += h;<br>
+ }<br>
+<br>
+ /* Delete bound textures */<br>
+ glDeleteTextures(1, &compressed_tex);<br>
+ glDeleteTextures(1, &decompressed_tex);<br>
+<br>
+ piglit_present_results();<br>
+ return pass;<br>
+}<br>
+<br>
+enum piglit_result<br>
+test_miptrees(void* input_type)<br>
+{<br>
+ int subtest = 0;<br>
+ enum test_type * type = (enum test_type*) input_type;<br>
+ bool is_srgb_test = *type == TEST_TYPE_SRGB;<br>
+ bool is_hdr_test = *type == TEST_TYPE_HDR;<br>
+<br>
+ static const char * tests[3] = {"hdr", "ldrl", "ldrs"};<br>
+ static const char * block_dim_str[14] = {<br>
+ "4x4",<br>
+ "5x4",<br>
+ "5x5",<br>
+ "6x5",<br>
+ "6x6",<br>
+ "8x5",<br>
+ "8x6",<br>
+ "8x8",<br>
+ "10x5",<br>
+ "10x6",<br>
+ "10x8",<br>
+ "10x10",<br>
+ "12x10",<br>
+ "12x12"<br>
+ };<br>
+<br>
+ bool has_hdr = piglit_is_extension_supported(<br>
+ "GL_KHR_texture_compression_astc_hdr");<br>
+<br>
+ /* If testing sRGB mode, fast-forward to the srgb test. */<br>
+ if (is_srgb_test) {<br>
+ subtest = TEST_TYPE_SRGB;<br>
+ } else {<br>
+ /* Skip if on an HDR system not running the HDR test<br>
+ * or if on an LDR system running the HDR test.<br>
+ */<br>
+ if (has_hdr != is_hdr_test)<br>
+ return PIGLIT_SKIP;<br>
+ piglit_require_extension("GL_EXT_texture_sRGB_decode");<br>
+<br>
+ }<br>
+<br>
+ GLint pixel_offset_loc = glGetUniformLocation(prog, "pixel_offset");<br>
+ GLint level_pixel_size_loc = glGetUniformLocation(prog,<br>
+ "level_pixel_size");<br>
+<br>
+ /* Test each submode */<br>
+ for (; subtest < ARRAY_SIZE(tests); ++subtest) {<br>
+<br>
+ /* Check for error color if an LDR-only sys reading an HDR<br>
+ * texture. No need to draw a reference mipmap in this case.<br>
+ */<br>
+ int check_error = !has_hdr && subtest == TEST_TYPE_HDR;<br>
+ int block_dims = 0;<br>
+ for (; block_dims < ARRAY_SIZE(block_dim_str); ++block_dims) {<br>
+<br>
+ /* Texture objects. */<br>
+ GLuint tex_compressed;<br>
+ GLuint tex_decompressed;<br>
+<br>
+ /* Load texture for current submode and block size */<br>
+ load_texture("compressed", tests[subtest],<br>
+ block_dim_str[block_dims],<br>
+ &tex_compressed);<br>
+ if (!check_error) {<br>
+ load_texture("decompressed", tests[subtest],<br>
+ block_dim_str[block_dims],<br>
+ &tex_decompressed);<br>
+ }<br>
+<br>
+ /* Draw and compare each level of the two textures */<br>
+ glClear(GL_COLOR_BUFFER_BIT);<br>
+ if (!draw_compare_levels(check_error, is_srgb_test,<br>
+ level_pixel_size_loc,<br>
+ pixel_offset_loc,<br>
+ tex_compressed,<br>
+ tex_decompressed)) {<br>
+ piglit_loge("Mode %s Block %s.",<br>
+ tests[subtest],<br>
+ block_dim_str[block_dims]);<br>
+ return PIGLIT_FAIL;<br>
+ }<br>
+ }<br>
+ }<br>
+ return PIGLIT_PASS;<br>
+}<br>
+<br>
+void<br>
+piglit_init(int argc, char **argv)<br>
+{<br>
+ static const char vs_source[] =<br>
+ "#version 100\n"<br>
+ "\n"<br>
+ "uniform vec2 window_pixel_size;\n"<br>
+ "uniform vec2 level_pixel_size;\n"<br>
+ "uniform vec2 pixel_offset;\n"<br>
+ "\n"<br>
+ "// vertex is some corner of the unit square [0,1]^2 \n"<br>
+ "attribute vec2 vertex;\n"<br>
+ "varying vec2 tex_coord;\n"<br>
+ "\n"<br>
+ "void main()\n"<br>
+ "{\n"<br>
+ " vec2 pos = vertex;\n"<br>
+ " pos *= level_pixel_size;\n"<br>
+ " pos += pixel_offset;\n"<br>
+ " pos /= 0.5 * window_pixel_size;\n"<br>
+ " pos -= vec2(1, 1);\n"<br>
+ " gl_Position = vec4(pos.xy, 0.0, 1.0);\n"<br>
+ "\n"<br>
+ " tex_coord = vertex;\n"<br>
+ "}\n";<br>
+<br>
+ static const char fs_source[] =<br>
+ "#version 100\n"<br>
+ "precision highp float;\n"<br>
+ "\n"<br>
+ "uniform sampler2D tex;\n"<br>
+ "varying vec2 tex_coord;\n"<br>
+ "\n"<br>
+ "void main()\n"<br>
+ "{\n"<br>
+ " vec4 t = texture2D(tex, tex_coord);\n"<br>
+ " gl_FragColor = vec4(t.rgb, 1.0);\n"<br>
+ "}\n";<br>
+<br>
+ /* Vertices to draw a square triangle strip. */<br>
+ static const GLfloat vertices[2 * NUM_VERTICES] = {<br>
+ 0, 0,<br>
+ 1, 0,<br>
+ 1, 1,<br>
+ 0, 1,<br>
+ };<br>
+<br>
+ GLint vertex_loc;<br>
+ GLuint vertex_buf;<br>
+ GLuint vao;<br>
+<br>
+ piglit_require_extension("GL_KHR_texture_compression_astc_ldr");<br>
+<br>
+ glClearColor(0.9098, 0.8314, 0.7843, 1.0);<br>
+ glViewport(0, 0, piglit_width, piglit_height);<br>
+<br>
+ glGenBuffers(1, &vertex_buf);<br>
+ glBindBuffer(GL_ARRAY_BUFFER, vertex_buf);<br>
+<br>
+ glGenVertexArrays(1, &vao);<br>
+ glBindVertexArray(vao);<br>
+<br>
+ prog = piglit_build_simple_program(vs_source, fs_source);<br>
+ glReleaseShaderCompiler();<br>
+ glUseProgram(prog);<br>
+<br>
+ vertex_loc = glGetAttribLocation(prog, "vertex");<br>
+ glEnableVertexAttribArray(vertex_loc);<br>
+ glVertexAttribPointer(vertex_loc, 2, GL_FLOAT, GL_FALSE, 0, NULL);<br>
+ glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices,<br>
+ GL_STATIC_DRAW);<br>
+<br>
+ glUniform1i(glGetUniformLocation(prog, "tex"), 0);<br>
+ glUniform2f(glGetUniformLocation(prog, "window_pixel_size"),<br>
+ piglit_width, piglit_height);<br>
+}<br>
+<br>
+enum piglit_result<br>
+piglit_display(void)<br>
+{<br>
+ return piglit_run_selected_subtests(piglit_config->subtests,<br>
+ piglit_config->selected_subtests,<br>
+ piglit_config->num_selected_subtests,<br>
+ PIGLIT_SKIP);<br>
+}<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.5.1<br>
<br>
</font></span></blockquote></div><br></div></div>