summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 aa4a7df0cbe..a8ef0458134 100644
--- a/src/compiler/nir_types.cpp
+++ b/src/compiler/nir_types.cpp
@@ -674,6 +674,12 @@ glsl_contains_atomic(const struct glsl_type *type)
return type->contains_atomic();
}
+bool
+glsl_contains_opaque(const struct glsl_type *type)
+{
+ return type->contains_opaque();
+}
+
int
glsl_get_cl_size(const struct glsl_type *type)
{
diff --git a/src/compiler/nir_types.h b/src/compiler/nir_types.h
index 0e7639e9018..e1fbc830b1c 100644
--- a/src/compiler/nir_types.h
+++ b/src/compiler/nir_types.h
@@ -137,6 +137,7 @@ bool glsl_type_contains_64bit(const struct glsl_type *type);
bool glsl_sampler_type_is_shadow(const struct glsl_type *type);
bool glsl_sampler_type_is_array(const struct glsl_type *type);
bool glsl_contains_atomic(const struct glsl_type *type);
+bool glsl_contains_opaque(const struct glsl_type *type);
const struct glsl_type *glsl_void_type(void);
const struct glsl_type *glsl_float_type(void);