[Piglit] [PATCH 0/1] *** Tests for compressed cubemaps ***

Eleni Maria Stea estea at igalia.com
Tue Jan 8 13:23:06 UTC 2019

Added two tests for compressed cubemaps.

The compressed-cubemap.c checks that we can successfully render cubemaps
from compressed data by drawing all the cubemap faces and probing the
colors after the rendering. It is useful for testing the compressed
formats on GPUs like the Intel Gen < 7 that don't support all of them

The compressed-cubemap-teximage.c is testing that cubemaps generated by
dumped cubemap faces are the same with cubemaps generated by calling
TexImage2D on GL_TEXTURE_CUBE_MAP faces.

It was added because calling TexImage to compress rgba data in the
compressed-cubemap.c was generating an invalid cubemap for some
otherwise supported formats on mesa.

It was still possible to generate cubemaps in these formats by dumping
the compressed cubemap faces and calling CompressedTexImage, as
TexImage2D seemed to work well with 2D images (when used to dump the
data) and only generated invalid cubemaps with GL_TEXTURE_CUBE_MAP
faces. So, this second test was added to point out this problem.

Eleni Maria Stea (1):
  Tests for compressed cubemaps

 tests/texturing/CMakeLists.gl.txt             |   2 +
 tests/texturing/compressed-cubemap-teximage.c | 372 ++++++++++++++
 tests/texturing/compressed-cubemap.c          | 477 ++++++++++++++++++
 3 files changed, 851 insertions(+)
 create mode 100644 tests/texturing/compressed-cubemap-teximage.c
 create mode 100644 tests/texturing/compressed-cubemap.c


More information about the Piglit mailing list