[Piglit] [PATCH 0/4] Add tests for ASTC

Nanley Chery nanleychery at gmail.com
Wed Jul 29 09:23:35 PDT 2015


From: Nanley Chery <nanley.g.chery at intel.com>

These patches enable testing the rendering of ASTC miptrees as well as the
usage of ASTC tokens in GL commands.

Nanley Chery (4):
  arb_texture_compression/invalid-formats: add ASTC to list of formats
  util: Add a piglit_probe_rects_equal_rgba() function
  tests: Add miptree tests for KHR_texture_compression_astc_{ldr,hdr}
  tests: Add API tests for KHR_texture_compression_astc_{ldr,hdr}

 tests/all.py                                       |   6 +
 tests/spec/CMakeLists.txt                          |   1 +
 .../spec/arb_texture_compression/invalid-formats.c |  51 ++-
 .../khr_texture_compression_astc/CMakeLists.gl.txt |  15 +
 .../CMakeLists.gles2.txt                           |   9 +
 .../khr_texture_compression_astc/CMakeLists.txt    |   1 +
 .../compressed/hdr/waffles-10x10.ktx               | Bin 0 -> 4000 bytes
 .../compressed/hdr/waffles-10x5.ktx                | Bin 0 -> 7696 bytes
 .../compressed/hdr/waffles-10x6.ktx                | Bin 0 -> 6336 bytes
 .../compressed/hdr/waffles-10x8.ktx                | Bin 0 -> 4960 bytes
 .../compressed/hdr/waffles-12x10.ktx               | Bin 0 -> 3552 bytes
 .../compressed/hdr/waffles-12x12.ktx               | Bin 0 -> 2992 bytes
 .../compressed/hdr/waffles-4x4.ktx                 | Bin 0 -> 23456 bytes
 .../compressed/hdr/waffles-5x4.ktx                 | Bin 0 -> 18768 bytes
 .../compressed/hdr/waffles-5x5.ktx                 | Bin 0 -> 15248 bytes
 .../compressed/hdr/waffles-6x5.ktx                 | Bin 0 -> 13040 bytes
 .../compressed/hdr/waffles-6x6.ktx                 | Bin 0 -> 10720 bytes
 .../compressed/hdr/waffles-8x5.ktx                 | Bin 0 -> 9632 bytes
 .../compressed/hdr/waffles-8x6.ktx                 | Bin 0 -> 7920 bytes
 .../compressed/hdr/waffles-8x8.ktx                 | Bin 0 -> 6192 bytes
 .../compressed/ldrl/waffles-10x10.ktx              | Bin 0 -> 4000 bytes
 .../compressed/ldrl/waffles-10x5.ktx               | Bin 0 -> 7696 bytes
 .../compressed/ldrl/waffles-10x6.ktx               | Bin 0 -> 6336 bytes
 .../compressed/ldrl/waffles-10x8.ktx               | Bin 0 -> 4960 bytes
 .../compressed/ldrl/waffles-12x10.ktx              | Bin 0 -> 3552 bytes
 .../compressed/ldrl/waffles-12x12.ktx              | Bin 0 -> 2992 bytes
 .../compressed/ldrl/waffles-4x4.ktx                | Bin 0 -> 23456 bytes
 .../compressed/ldrl/waffles-5x4.ktx                | Bin 0 -> 18768 bytes
 .../compressed/ldrl/waffles-5x5.ktx                | Bin 0 -> 15248 bytes
 .../compressed/ldrl/waffles-6x5.ktx                | Bin 0 -> 13040 bytes
 .../compressed/ldrl/waffles-6x6.ktx                | Bin 0 -> 10720 bytes
 .../compressed/ldrl/waffles-8x5.ktx                | Bin 0 -> 9632 bytes
 .../compressed/ldrl/waffles-8x6.ktx                | Bin 0 -> 7920 bytes
 .../compressed/ldrl/waffles-8x8.ktx                | Bin 0 -> 6192 bytes
 .../compressed/ldrs/waffles-10x10.ktx              | Bin 0 -> 4000 bytes
 .../compressed/ldrs/waffles-10x5.ktx               | Bin 0 -> 7696 bytes
 .../compressed/ldrs/waffles-10x6.ktx               | Bin 0 -> 6336 bytes
 .../compressed/ldrs/waffles-10x8.ktx               | Bin 0 -> 4960 bytes
 .../compressed/ldrs/waffles-12x10.ktx              | Bin 0 -> 3552 bytes
 .../compressed/ldrs/waffles-12x12.ktx              | Bin 0 -> 2992 bytes
 .../compressed/ldrs/waffles-4x4.ktx                | Bin 0 -> 23456 bytes
 .../compressed/ldrs/waffles-5x4.ktx                | Bin 0 -> 18768 bytes
 .../compressed/ldrs/waffles-5x5.ktx                | Bin 0 -> 15248 bytes
 .../compressed/ldrs/waffles-6x5.ktx                | Bin 0 -> 13040 bytes
 .../compressed/ldrs/waffles-6x6.ktx                | Bin 0 -> 10720 bytes
 .../compressed/ldrs/waffles-8x5.ktx                | Bin 0 -> 9632 bytes
 .../compressed/ldrs/waffles-8x6.ktx                | Bin 0 -> 7920 bytes
 .../compressed/ldrs/waffles-8x8.ktx                | Bin 0 -> 6192 bytes
 .../decompressed/hdr/waffles-10x10.ktx             | Bin 0 -> 135572 bytes
 .../decompressed/hdr/waffles-10x5.ktx              | Bin 0 -> 135572 bytes
 .../decompressed/hdr/waffles-10x6.ktx              | Bin 0 -> 135572 bytes
 .../decompressed/hdr/waffles-10x8.ktx              | Bin 0 -> 135572 bytes
 .../decompressed/hdr/waffles-12x10.ktx             | Bin 0 -> 135572 bytes
 .../decompressed/hdr/waffles-12x12.ktx             | Bin 0 -> 135572 bytes
 .../decompressed/hdr/waffles-4x4.ktx               | Bin 0 -> 135572 bytes
 .../decompressed/hdr/waffles-5x4.ktx               | Bin 0 -> 135572 bytes
 .../decompressed/hdr/waffles-5x5.ktx               | Bin 0 -> 135572 bytes
 .../decompressed/hdr/waffles-6x5.ktx               | Bin 0 -> 135572 bytes
 .../decompressed/hdr/waffles-6x6.ktx               | Bin 0 -> 135572 bytes
 .../decompressed/hdr/waffles-8x5.ktx               | Bin 0 -> 135572 bytes
 .../decompressed/hdr/waffles-8x6.ktx               | Bin 0 -> 135572 bytes
 .../decompressed/hdr/waffles-8x8.ktx               | Bin 0 -> 135572 bytes
 .../decompressed/ldrl/waffles-10x10.ktx            | Bin 0 -> 67848 bytes
 .../decompressed/ldrl/waffles-10x5.ktx             | Bin 0 -> 67848 bytes
 .../decompressed/ldrl/waffles-10x6.ktx             | Bin 0 -> 67848 bytes
 .../decompressed/ldrl/waffles-10x8.ktx             | Bin 0 -> 67848 bytes
 .../decompressed/ldrl/waffles-12x10.ktx            | Bin 0 -> 67848 bytes
 .../decompressed/ldrl/waffles-12x12.ktx            | Bin 0 -> 67848 bytes
 .../decompressed/ldrl/waffles-4x4.ktx              | Bin 0 -> 67848 bytes
 .../decompressed/ldrl/waffles-5x4.ktx              | Bin 0 -> 67848 bytes
 .../decompressed/ldrl/waffles-5x5.ktx              | Bin 0 -> 67848 bytes
 .../decompressed/ldrl/waffles-6x5.ktx              | Bin 0 -> 67848 bytes
 .../decompressed/ldrl/waffles-6x6.ktx              | Bin 0 -> 67848 bytes
 .../decompressed/ldrl/waffles-8x5.ktx              | Bin 0 -> 67848 bytes
 .../decompressed/ldrl/waffles-8x6.ktx              | Bin 0 -> 67848 bytes
 .../decompressed/ldrl/waffles-8x8.ktx              | Bin 0 -> 67848 bytes
 .../decompressed/ldrs/waffles-10x10.ktx            | Bin 0 -> 67848 bytes
 .../decompressed/ldrs/waffles-10x5.ktx             | Bin 0 -> 67848 bytes
 .../decompressed/ldrs/waffles-10x6.ktx             | Bin 0 -> 67848 bytes
 .../decompressed/ldrs/waffles-10x8.ktx             | Bin 0 -> 67848 bytes
 .../decompressed/ldrs/waffles-12x10.ktx            | Bin 0 -> 67848 bytes
 .../decompressed/ldrs/waffles-12x12.ktx            | Bin 0 -> 67848 bytes
 .../decompressed/ldrs/waffles-4x4.ktx              | Bin 0 -> 67848 bytes
 .../decompressed/ldrs/waffles-5x4.ktx              | Bin 0 -> 67848 bytes
 .../decompressed/ldrs/waffles-5x5.ktx              | Bin 0 -> 67848 bytes
 .../decompressed/ldrs/waffles-6x5.ktx              | Bin 0 -> 67848 bytes
 .../decompressed/ldrs/waffles-6x6.ktx              | Bin 0 -> 67848 bytes
 .../decompressed/ldrs/waffles-8x5.ktx              | Bin 0 -> 67848 bytes
 .../decompressed/ldrs/waffles-8x6.ktx              | Bin 0 -> 67848 bytes
 .../decompressed/ldrs/waffles-8x8.ktx              | Bin 0 -> 67848 bytes
 .../khr_compressed_astc-basic.c                    | 339 ++++++++++++++++++++
 .../khr_compressed_astc-miptree.c                  | 356 +++++++++++++++++++++
 tests/util/piglit-util-gl.c                        |  88 +++++
 tests/util/piglit-util-gl.h                        |  23 ++
 94 files changed, 888 insertions(+), 1 deletion(-)
 create mode 100644 tests/spec/khr_texture_compression_astc/CMakeLists.gl.txt
 create mode 100644 tests/spec/khr_texture_compression_astc/CMakeLists.gles2.txt
 create mode 100644 tests/spec/khr_texture_compression_astc/CMakeLists.txt
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-10x10.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-10x5.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-10x6.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-10x8.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-12x10.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-12x12.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-4x4.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-5x4.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-5x5.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-6x5.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-6x6.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-8x5.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-8x6.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/hdr/waffles-8x8.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-10x10.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-10x5.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-10x6.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-10x8.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-12x10.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-12x12.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-4x4.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-5x4.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-5x5.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-6x5.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-6x6.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-8x5.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-8x6.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrl/waffles-8x8.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-10x10.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-10x5.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-10x6.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-10x8.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-12x10.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-12x12.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-4x4.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-5x4.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-5x5.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-6x5.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-6x6.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-8x5.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-8x6.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/compressed/ldrs/waffles-8x8.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-10x10.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-10x5.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-10x6.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-10x8.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-12x10.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-12x12.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-4x4.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-5x4.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-5x5.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-6x5.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-6x6.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-8x5.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-8x6.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/hdr/waffles-8x8.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-10x10.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-10x5.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-10x6.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-10x8.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-12x10.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-12x12.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-4x4.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-5x4.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-5x5.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-6x5.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-6x6.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-8x5.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-8x6.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrl/waffles-8x8.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-10x10.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-10x5.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-10x6.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-10x8.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-12x10.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-12x12.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-4x4.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-5x4.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-5x5.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-6x5.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-6x6.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-8x5.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-8x6.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/decompressed/ldrs/waffles-8x8.ktx
 create mode 100644 tests/spec/khr_texture_compression_astc/khr_compressed_astc-basic.c
 create mode 100644 tests/spec/khr_texture_compression_astc/khr_compressed_astc-miptree.c

-- 
2.4.2



More information about the Piglit mailing list