On Fri 02 Oct 2015, Nanley Chery wrote:
> From: Nanley Chery <[email protected]>
> 
> 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 <[email protected]>


> +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
_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to