summaryrefslogtreecommitdiff
path: root/src/compiler/nir_types.cpp
diff options
context:
space:
mode:
authorTimothy Arceri <timothy.arceri@collabora.com>2016-06-15 10:43:12 +1000
committerKenneth Graunke <kenneth@whitecape.org>2016-07-06 23:20:23 -0700
commit7a9d6abcae63a6f837fa161246ecf1f14840e77b (patch)
tree15e29e5fd0e1b81868309e01edd82674582218b6 /src/compiler/nir_types.cpp
parent13affe0d3f2756771edfab301f31dc69185f91f7 (diff)
nir: add glsl_dvec_type() helper
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/compiler/nir_types.cpp')
-rw-r--r--src/compiler/nir_types.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp
index 2d46ed2a1ef..f694a84e72c 100644
--- a/src/compiler/nir_types.cpp
+++ b/src/compiler/nir_types.cpp
@@ -263,6 +263,12 @@ glsl_vec_type(unsigned n)
}
const glsl_type *
+glsl_dvec_type(unsigned n)
+{
+ return glsl_type::dvec(n);
+}
+
+const glsl_type *
glsl_vec4_type(void)
{
return glsl_type::vec4_type;