summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2015-02-23 19:56:00 -0800
committerKenneth Graunke <kenneth@whitecape.org>2015-03-25 16:17:19 -0700
commit3120345f407695e9fef96e4fa98f7ff3af8c38ce (patch)
tree86d146f3a8fc4a6f3e4566eb9036748e651a318d
parent871f1080d0f7b7444458de40b67de7938c220922 (diff)
downloadexternal_mesa3d-3120345f407695e9fef96e4fa98f7ff3af8c38ce.zip
external_mesa3d-3120345f407695e9fef96e4fa98f7ff3af8c38ce.tar.gz
external_mesa3d-3120345f407695e9fef96e4fa98f7ff3af8c38ce.tar.bz2
nir: Add glsl_float_type() wrapper.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
-rw-r--r--src/glsl/nir/nir_types.cpp6
-rw-r--r--src/glsl/nir/nir_types.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/glsl/nir/nir_types.cpp b/src/glsl/nir/nir_types.cpp
index a13c3e1..f0d0b46 100644
--- a/src/glsl/nir/nir_types.cpp
+++ b/src/glsl/nir/nir_types.cpp
@@ -143,6 +143,12 @@ glsl_void_type(void)
}
const glsl_type *
+glsl_float_type(void)
+{
+ return glsl_type::float_type;
+}
+
+const glsl_type *
glsl_vec4_type(void)
{
return glsl_type::vec4_type;
diff --git a/src/glsl/nir/nir_types.h b/src/glsl/nir/nir_types.h
index 494051a..276d4ad 100644
--- a/src/glsl/nir/nir_types.h
+++ b/src/glsl/nir/nir_types.h
@@ -69,6 +69,7 @@ bool glsl_type_is_scalar(const struct glsl_type *type);
bool glsl_type_is_matrix(const struct glsl_type *type);
const struct glsl_type *glsl_void_type(void);
+const struct glsl_type *glsl_float_type(void);
const struct glsl_type *glsl_vec4_type(void);
const struct glsl_type *glsl_array_type(const struct glsl_type *base,
unsigned elements);