summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-06-15 10:43:12 +1000
committerKenneth Graunke <[email protected]>2016-07-06 23:20:23 -0700
commit7a9d6abcae63a6f837fa161246ecf1f14840e77b (patch)
tree15e29e5fd0e1b81868309e01edd82674582218b6 /src/compiler
parent13affe0d3f2756771edfab301f31dc69185f91f7 (diff)
nir: add glsl_dvec_type() helper
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/nir_types.cpp6
-rw-r--r--src/compiler/nir_types.h1
2 files changed, 7 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;
diff --git a/src/compiler/nir_types.h b/src/compiler/nir_types.h
index c505ac02c27..6b4f646b20b 100644
--- a/src/compiler/nir_types.h
+++ b/src/compiler/nir_types.h
@@ -119,6 +119,7 @@ const struct glsl_type *glsl_void_type(void);
const struct glsl_type *glsl_float_type(void);
const struct glsl_type *glsl_double_type(void);
const struct glsl_type *glsl_vec_type(unsigned n);
+const struct glsl_type *glsl_dvec_type(unsigned n);
const struct glsl_type *glsl_vec4_type(void);
const struct glsl_type *glsl_int_type(void);
const struct glsl_type *glsl_uint_type(void);