summaryrefslogtreecommitdiffstats
path: root/src/glsl/tests
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2013-11-25 14:03:06 -0800
committerFrancisco Jerez <currojerez@riseup.net>2014-02-12 18:43:37 +0100
commit107d03a6d5b63687361b2b4d2876ef52b082cbb5 (patch)
treed324b5e64917a4deb3f282a5112e2205454210fd /src/glsl/tests
parent8a2508ee0726b349318c1e05122edbe5a545480a (diff)
downloadexternal_mesa3d-107d03a6d5b63687361b2b4d2876ef52b082cbb5.zip
external_mesa3d-107d03a6d5b63687361b2b4d2876ef52b082cbb5.tar.gz
external_mesa3d-107d03a6d5b63687361b2b4d2876ef52b082cbb5.tar.bz2
glsl: Add helper methods to glsl_type for dealing with images.
Add predicates to query if a GLSL type is or contains an image. Rename sampler_coordinate_components() to coordinate_components(). v2: Use assert instead of unreachable. v3: No need to use a separate code-path for images in coordinate_components() after merging image and sampler fields in the glsl_type structure. Reviewed-by: Paul Berry <stereotype441@gmail.com>
Diffstat (limited to 'src/glsl/tests')
-rw-r--r--src/glsl/tests/sampler_types_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/tests/sampler_types_test.cpp b/src/glsl/tests/sampler_types_test.cpp
index 4fb30dd..86d329a 100644
--- a/src/glsl/tests/sampler_types_test.cpp
+++ b/src/glsl/tests/sampler_types_test.cpp
@@ -47,7 +47,7 @@ TEST(sampler_types, TYPE) \
EXPECT_EQ(DATA_TYPE, type->sampler_type); \
ARR; \
SHAD; \
- EXPECT_EQ(COMPS, type->sampler_coordinate_components()); \
+ EXPECT_EQ(COMPS, type->coordinate_components()); \
}
T( sampler1D, GLSL_SAMPLER_DIM_1D, GLSL_TYPE_FLOAT, NONARRAY, COLOR, 1)