Mesa (main): nir/glsl: wrapper contains_{double,interger}()
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon May 16 04:43:32 UTC 2022
Module: Mesa
Branch: main
Commit: 42a97a0aefbc659a659710a26cd419ac559f8e70
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=42a97a0aefbc659a659710a26cd419ac559f8e70
Author: Timothy Arceri <tarceri at itsqueeze.com>
Date: Mon Nov 1 14:48:38 2021 +1100
nir/glsl: wrapper contains_{double,interger}()
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15731>
---
src/compiler/nir_types.cpp | 12 ++++++++++++
src/compiler/nir_types.h | 2 ++
2 files changed, 14 insertions(+)
diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp
index 2231d4039dc..3bb989b24f6 100644
--- a/src/compiler/nir_types.cpp
+++ b/src/compiler/nir_types.cpp
@@ -441,6 +441,18 @@ glsl_type_contains_image(const struct glsl_type *type)
return type->contains_image();
}
+bool
+glsl_contains_double(const struct glsl_type *type)
+{
+ return type->contains_double();
+}
+
+bool
+glsl_contains_integer(const struct glsl_type *type)
+{
+ return type->contains_integer();
+}
+
bool
glsl_record_compare(const struct glsl_type *a, const struct glsl_type *b,
bool match_name, bool match_locations, bool match_precision)
diff --git a/src/compiler/nir_types.h b/src/compiler/nir_types.h
index ed5ec6159ff..1365cdf056a 100644
--- a/src/compiler/nir_types.h
+++ b/src/compiler/nir_types.h
@@ -165,6 +165,8 @@ bool glsl_sampler_type_is_shadow(const struct glsl_type *type);
bool glsl_sampler_type_is_array(const struct glsl_type *type);
bool glsl_struct_type_is_packed(const struct glsl_type *type);
bool glsl_contains_atomic(const struct glsl_type *type);
+bool glsl_contains_double(const struct glsl_type *type);
+bool glsl_contains_integer(const struct glsl_type *type);
bool glsl_contains_opaque(const struct glsl_type *type);
bool glsl_record_compare(const struct glsl_type *a, const struct glsl_type *b,
bool match_name, bool match_locations,
More information about the mesa-commit
mailing list