[Piglit] [PATCH 09/16] msaa/formats: Add EXT_texture_integer tests.

Anuj Phogat anuj.phogat at gmail.com
Fri Jun 22 12:23:07 PDT 2012


On Fri, Jun 15, 2012 at 8:32 AM, Paul Berry <stereotype441 at gmail.com> wrote:
> The MSAA "formats" test now properly tests integer framebuffer
> formats.  This patch updates all.tests to cause integer framebuffer
> formats to be tested.
> ---
>  tests/all.tests |    9 +++++++++
>  1 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/tests/all.tests b/tests/all.tests
> index 84c68a8..3f4ab26 100644
> --- a/tests/all.tests
> +++ b/tests/all.tests
> @@ -153,6 +153,14 @@ def add_fbo_formats_tests(path, extension):
>                profile.tests[path + '/fbo-blending-formats'] = PlainExecTest('fbo-blending-formats -auto ' + extension)
>                profile.tests[path + '/fbo-alphatest-formats'] = PlainExecTest('fbo-alphatest-formats -auto ' + extension)
>
> +def add_msaa_formats_tests(group, extension):
> +        for num_samples in MSAA_SAMPLE_COUNTS:
> +                args = [str(num_samples), extension]
> +                test_name = ' '.join(['multisample-formats'] + args)
> +                group[test_name] = PlainExecTest(
> +                        ['ext_framebuffer_multisample-formats', '-auto']
> +                        + args)
> +
>  def add_fbo_generatemipmap_extension(group, extension, name):
>        group[name] = PlainExecTest(['fbo-generatemipmap-formats', '-auto',
>                                     extension])
> @@ -1505,6 +1513,7 @@ ext_texture_integer['fbo_integer_readpixels_sint_uint'] = plain_test('ext_textur
>  ext_texture_integer['getteximage-clamping'] = concurrent_test('ext_texture_integer-getteximage-clamping')
>  ext_texture_integer['getteximage-clamping GL_ARB_texture_rg'] = concurrent_test('ext_texture_integer-getteximage-clamping GL_ARB_texture_rg')
>  ext_texture_integer['texture_integer_glsl130'] = concurrent_test('ext_texture_integer-texture_integer_glsl130')
> +add_msaa_formats_tests(ext_texture_integer, 'GL_EXT_texture_integer')
>
>  arb_texture_rg = Group()
>  spec['ARB_texture_rg'] = arb_texture_rg
> --
> 1.7.7.6
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit

Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>


More information about the Piglit mailing list