[Piglit] [PATCH v4 5/5] khr_texture_compression_astc: Add array tests

Chad Versace chad.versace at intel.com
Mon Oct 5 11:53:37 PDT 2015


On Fri 02 Oct 2015, Nanley Chery wrote:
> From: Nanley Chery <nanley.g.chery at intel.com>
> 
> These tests check that 2D texture arrays work for the 5x5 and
> 12x12 block sizes.
> 
> v2. add to all.py (Ilia).
>     create test for gles2.
> v3. upgrade required GLES version to 3.1 (for 2d array support).
> 
> Signed-off-by: Nanley Chery <nanley.g.chery at intel.com>


> +PIGLIT_GL_TEST_CONFIG_BEGIN

The test config block should occur near the top of the file.
You may need to forward-declare some things to make that happen.

> +
> +	piglit_config = &config;
> +	config.supports_gl_compat_version = 11;
> +	config.supports_gl_es_version = 31;
> +
> +	config.window_width = 2 * level0_width;
> +	config.window_height = level0_height + (level0_height >> 1);
> +	config.window_visual = PIGLIT_GL_VISUAL_RGB | PIGLIT_GL_VISUAL_DOUBLE;
> +	static bool is_odd[2] = {true, false};
> +
> +	config.subtests = (struct piglit_subtest[]) {
> +		{
> +			"5x5 Block Dim",
> +			"odd",
> +			test_miptrees,
> +			&is_odd[0]
> +		},
> +		{
> +			"12x12 Block Dim",
> +			"even",
> +			test_miptrees,
> +			&is_odd[1]
> +		},
> +		{NULL},
> +	};
> +
> +PIGLIT_GL_TEST_CONFIG_END


More information about the Piglit mailing list