[5/5] generators/gen_vs_in_fp64: Adds u/byte and u/short tests

Submitted by Andres Gomez on June 14, 2016, 9:37 p.m.

Details

Message ID 1465940221-24431-6-git-send-email-agomez@igalia.com
State Accepted
Headers show
Series "More additional tests for ARB_vertex_attrib_64bit extension" ( rev: 2 ) in Piglit

Not browsing as part of any series.

Commit Message

Andres Gomez June 14, 2016, 9:37 p.m.
Added more test cases combinations by including u/byte and u/short GL
types in the VBO so the stride is smaller than a word.

Signed-off-by: Andres Gomez <agomez@igalia.com>
---
 generated_tests/gen_vs_in_fp64.py | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Patch hide | download patch | download mbox

diff --git a/generated_tests/gen_vs_in_fp64.py b/generated_tests/gen_vs_in_fp64.py
index af7e81b..4b8230c 100644
--- a/generated_tests/gen_vs_in_fp64.py
+++ b/generated_tests/gen_vs_in_fp64.py
@@ -323,6 +323,37 @@  class RegularTestTuple(TestTuple):
         for test_args in RegularTestTuple.create_tests(
                 ['GL_ARB_vertex_attrib_64bit', '410'],
                 RegularTestTuple.create_in_types_array(
+                    itertools.chain(GLSL_USCALAR_TYPES, GLSL_UVEC_TYPES),
+                    itertools.chain(GLSL_ISCALAR_TYPES, GLSL_IVEC_TYPES),
+                    itertools.chain(GLSL_DSCALAR_TYPES, GLSL_DVEC_TYPES, GLSL_DMAT_TYPES)),
+                ['ubyte', 'short', 'double'],
+                [1, 2, 3, 4],
+                [[1, 1, 1]],
+                names_only):
+            yield RegularTestTuple(*test_args)
+        for test_args in RegularTestTuple.create_tests(
+                ['GL_ARB_vertex_attrib_64bit', '410'],
+                RegularTestTuple.create_in_types_array(
+                    itertools.chain(GLSL_ISCALAR_TYPES, GLSL_IVEC_TYPES),
+                    itertools.chain(GLSL_DSCALAR_TYPES, GLSL_DVEC_TYPES, GLSL_DMAT_TYPES)),
+                ['byte', 'double'],
+                [1, 2, 3],
+                [[1, 1]],
+                names_only):
+            yield RegularTestTuple(*test_args)
+        for test_args in RegularTestTuple.create_tests(
+                ['GL_ARB_vertex_attrib_64bit', '410'],
+                RegularTestTuple.create_in_types_array(
+                    itertools.chain(GLSL_USCALAR_TYPES, GLSL_UVEC_TYPES),
+                    itertools.chain(GLSL_DSCALAR_TYPES, GLSL_DVEC_TYPES, GLSL_DMAT_TYPES)),
+                ['ushort', 'double'],
+                [1, 2, 3],
+                [[1, 1]],
+                names_only):
+            yield RegularTestTuple(*test_args)
+        for test_args in RegularTestTuple.create_tests(
+                ['GL_ARB_vertex_attrib_64bit', '410'],
+                RegularTestTuple.create_in_types_array(
                     itertools.chain(GLSL_DSCALAR_TYPES, GLSL_DVEC_TYPES, GLSL_DMAT_TYPES),
                     itertools.chain(GLSL_FSCALAR_TYPES, GLSL_FVEC_TYPES, GLSL_FMAT_TYPES)),
                 ['double', 'float'],

Comments

Ditto:
Acked-by: Alejandro PiƱeiro <apinheiro@igalia.com>

On 14/06/16 23:37, Andres Gomez wrote:
> Added more test cases combinations by including u/byte and u/short GL
> types in the VBO so the stride is smaller than a word.
>
> Signed-off-by: Andres Gomez <agomez@igalia.com>
> ---
>  generated_tests/gen_vs_in_fp64.py | 31 +++++++++++++++++++++++++++++++
>  1 file changed, 31 insertions(+)
>
> diff --git a/generated_tests/gen_vs_in_fp64.py b/generated_tests/gen_vs_in_fp64.py
> index af7e81b..4b8230c 100644
> --- a/generated_tests/gen_vs_in_fp64.py
> +++ b/generated_tests/gen_vs_in_fp64.py
> @@ -323,6 +323,37 @@ class RegularTestTuple(TestTuple):
>          for test_args in RegularTestTuple.create_tests(
>                  ['GL_ARB_vertex_attrib_64bit', '410'],
>                  RegularTestTuple.create_in_types_array(
> +                    itertools.chain(GLSL_USCALAR_TYPES, GLSL_UVEC_TYPES),
> +                    itertools.chain(GLSL_ISCALAR_TYPES, GLSL_IVEC_TYPES),
> +                    itertools.chain(GLSL_DSCALAR_TYPES, GLSL_DVEC_TYPES, GLSL_DMAT_TYPES)),
> +                ['ubyte', 'short', 'double'],
> +                [1, 2, 3, 4],
> +                [[1, 1, 1]],
> +                names_only):
> +            yield RegularTestTuple(*test_args)
> +        for test_args in RegularTestTuple.create_tests(
> +                ['GL_ARB_vertex_attrib_64bit', '410'],
> +                RegularTestTuple.create_in_types_array(
> +                    itertools.chain(GLSL_ISCALAR_TYPES, GLSL_IVEC_TYPES),
> +                    itertools.chain(GLSL_DSCALAR_TYPES, GLSL_DVEC_TYPES, GLSL_DMAT_TYPES)),
> +                ['byte', 'double'],
> +                [1, 2, 3],
> +                [[1, 1]],
> +                names_only):
> +            yield RegularTestTuple(*test_args)
> +        for test_args in RegularTestTuple.create_tests(
> +                ['GL_ARB_vertex_attrib_64bit', '410'],
> +                RegularTestTuple.create_in_types_array(
> +                    itertools.chain(GLSL_USCALAR_TYPES, GLSL_UVEC_TYPES),
> +                    itertools.chain(GLSL_DSCALAR_TYPES, GLSL_DVEC_TYPES, GLSL_DMAT_TYPES)),
> +                ['ushort', 'double'],
> +                [1, 2, 3],
> +                [[1, 1]],
> +                names_only):
> +            yield RegularTestTuple(*test_args)
> +        for test_args in RegularTestTuple.create_tests(
> +                ['GL_ARB_vertex_attrib_64bit', '410'],
> +                RegularTestTuple.create_in_types_array(
>                      itertools.chain(GLSL_DSCALAR_TYPES, GLSL_DVEC_TYPES, GLSL_DMAT_TYPES),
>                      itertools.chain(GLSL_FSCALAR_TYPES, GLSL_FVEC_TYPES, GLSL_FMAT_TYPES)),
>                  ['double', 'float'],