diff options
author | Alejandro Piñeiro <apinheiro@igalia.com> | 2015-12-15 20:08:05 +0100 |
---|---|---|
committer | Alejandro Piñeiro <apinheiro@igalia.com> | 2016-03-04 09:18:56 +0100 |
commit | 116294f06a666f074e72442590a63ea250bff757 (patch) | |
tree | 9c87245499019aa88e42023dada6dd910a630ed7 /tests/all.py | |
parent | 517d44db644ea2033ba405deee0918b0ae8f3e8f (diff) |
arb_internalformat_query2: test for INTERNALFORMAT_{X}_TYPE pnames
From spec:
" INTERNALFORMAT_RED_TYPE
INTERNALFORMAT_GREEN_TYPE
INTERNALFORMAT_BLUE_TYPE
INTERNALFORMAT_ALPHA_TYPE
INTERNALFORMAT_DEPTH_TYPE
INTERNALFORMAT_STENCIL_TYPE
For uncompressed internal formats, queries for these values return
the data type used to store the component. For compressed internal
formats the types returned specify how components are interpreted
after decompression. For textures this query returns the same
information as querying GetTexLevelParameter{if}v for TEXTURE_*TYPE
would return. Possible values return include, NONE,
SIGNED_NORMALIZED, UNSIGNED_NORMALIZED, FLOAT, INT, UNSIGNED_INT,
representing missing, signed normalized fixed point, unsigned
normalized fixed point, floating-point, signed unnormalized integer
and unsigned unnormalized integer components. NONE is returned for
all component types if the format is unsupported."
So this test calls GetInternalformat with INTERNALFORMAT_SUPPORTED:
* If it is false, checks that the returned value is zero
* If it is true, checks that all returned values are from that
specific set of values
* If it is true, checks that all the values are the same that
GetTexLevelParameter
Tested on NVIDIA GeForce GTX 950 - NVIDIA 352.55: fails for the
same reasons that for INTERNALFORMAT_{X}_SIZE tests.
Acked-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'tests/all.py')
-rw-r--r-- | tests/all.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/all.py b/tests/all.py index 5343a6d8b..ca85c4529 100644 --- a/tests/all.py +++ b/tests/all.py @@ -3668,6 +3668,7 @@ with profile.group_manager( g(['arb_internalformat_query2-generic-pname-checks'], 'Individual most generic pname checks') g(['arb_internalformat_query2-samples-pnames'], 'SAMPLES and NUM_SAMPLE_COUNTS pname checks') g(['arb_internalformat_query2-internalformat-size-checks'], 'All INTERNALFORMAT_<X>_SIZE pname checks') + g(['arb_internalformat_query2-internalformat-type-checks'], 'All INTERNALFORMAT_<X>_TYPE pname checks') with profile.group_manager( PiglitGLTest, grouptools.join('spec', 'arb_map_buffer_range')) as g: |