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

Iago Toral itoral at igalia.com
Wed Jan 9 13:11:58 UTC 2019


On Tue, 2019-01-08 at 15:23 +0200, Eleni Maria Stea wrote:
> The compressed-cubemap.c tests the rendering of compressed cubemaps.
> The compressed-cubemap-teximage.c tests that compressed cubemaps
> created
> using dumped compressed 2D faces have the same values with compressed
> cubemaps that have been generated using TexImage.
> ---
>  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
> 
> diff --git a/tests/texturing/CMakeLists.gl.txt
> b/tests/texturing/CMakeLists.gl.txt
> index e5d41e432..526e68452 100644
> --- a/tests/texturing/CMakeLists.gl.txt
> +++ b/tests/texturing/CMakeLists.gl.txt
> @@ -15,6 +15,8 @@ piglit_add_executable (array-texture array-
> texture.c)
>  piglit_add_executable (bptc-modes bptc-modes.c)
>  piglit_add_executable (bptc-float-modes bptc-float-modes.c)
>  piglit_add_executable (compressedteximage compressedteximage.c)
> +piglit_add_executable (compressed-cubemap compressed-cubemap.c)
> +piglit_add_executable (compressed-cubemap-teximage compressed-
> cubemap-teximage.c)
>  piglit_add_executable (copytexsubimage copytexsubimage.c)
>  piglit_add_executable (copyteximage copyteximage.c)
>  piglit_add_executable (copyteximage-border copyteximage-border.c)
> diff --git a/tests/texturing/compressed-cubemap-teximage.c
> b/tests/texturing/compressed-cubemap-teximage.c
> new file mode 100644
> index 000000000..6727bea2d
> --- /dev/null
> +++ b/tests/texturing/compressed-cubemap-teximage.c
> @@ -0,0 +1,372 @@
> +/*
> + * Copyright © 2018 Igalia SL
> + *
> + * Permission is hereby granted, free of charge, to any person
> obtaining a
> + * copy of this software and associated documentation files (the
> "Software"),
> + * to deal in the Software without restriction, including without
> limitation
> + * the rights to use, copy, modify, merge, publish, distribute,
> sublicense,
> + * and/or sell copies of the Software, and to permit persons to whom
> the
> + * Software is furnished to do so, subject to the following
> conditions:
> + *
> + * The above copyright notice and this permission notice (including
> the next
> + * paragraph) shall be included in all copies or substantial
> portions of the
> + * Software.
> + *
> + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
> EXPRESS OR
> + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
> MERCHANTABILITY,
> + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO
> EVENT SHALL
> + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
> OR OTHER
> + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
> ARISING
> + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
> OTHER DEALINGS
> + * IN THE SOFTWARE.
> + *
> + * Authors: Eleni Maria Stea <estea at igalia.com>
> + *
> + */
> +
> +/** @file compressed-cubemap-teximage.c
> + * Tests that creating cubemaps with TexImage2D gives the same
> results
> + * with creating compressed cubemaps from dumped compressed data.
> + */
> +
> +#include "cubemap-compressed-data.h"

I think you forgot to include this file in the patch.

Iago



More information about the Piglit mailing list