glsl/tests: Add a test for properties of sampler types.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 12 Sep 2013 06:57:26 +0000 (23:57 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 16 Sep 2013 04:48:20 +0000 (21:48 -0700)
commit1da3ff1b1c735a410fea80581ed5774414e6120c
tree5eee4a14317648ea373b9c1bf7ec0958182e8037
parent2f508f244e8e4cb4bb2b9f813548fbf0c89b77c1
glsl/tests: Add a test for properties of sampler types.

For each sampler type, this tests that:
- The base type is GLSL_TYPE_SAMPLER.
- The dimensionality is set correctly.
- The returned data type is correct.
- The sampler_array and sampler_shadow flags are set correctly.
- sampler_coordinate_components() returns the correct value.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <idr@freedesktop.org>
src/glsl/Makefile.am
src/glsl/tests/sampler_types_test.cpp [new file with mode: 0644]