aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir_metadata.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/nir/nir_metadata.c')
-rw-r--r--src/glsl/nir/nir_metadata.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/glsl/nir/nir_metadata.c b/src/glsl/nir/nir_metadata.c
index d5324b35a78..61aae73221e 100644
--- a/src/glsl/nir/nir_metadata.c
+++ b/src/glsl/nir/nir_metadata.c
@@ -63,9 +63,9 @@ nir_metadata_preserve(nir_function_impl *impl, nir_metadata preserved)
void
nir_metadata_set_validation_flag(nir_shader *shader)
{
- nir_foreach_overload(shader, overload) {
- if (overload->impl) {
- overload->impl->valid_metadata |= nir_metadata_not_properly_reset;
+ nir_foreach_function(shader, function) {
+ if (function->impl) {
+ function->impl->valid_metadata |= nir_metadata_not_properly_reset;
}
}
}
@@ -80,9 +80,9 @@ nir_metadata_set_validation_flag(nir_shader *shader)
void
nir_metadata_check_validation_flag(nir_shader *shader)
{
- nir_foreach_overload(shader, overload) {
- if (overload->impl) {
- assert(!(overload->impl->valid_metadata &
+ nir_foreach_function(shader, function) {
+ if (function->impl) {
+ assert(!(function->impl->valid_metadata &
nir_metadata_not_properly_reset));
}
}