aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir_lower_gs_intrinsics.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/nir/nir_lower_gs_intrinsics.c')
-rw-r--r--src/glsl/nir/nir_lower_gs_intrinsics.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/glsl/nir/nir_lower_gs_intrinsics.c b/src/glsl/nir/nir_lower_gs_intrinsics.c
index 13254599088..fdff1656b4d 100644
--- a/src/glsl/nir/nir_lower_gs_intrinsics.c
+++ b/src/glsl/nir/nir_lower_gs_intrinsics.c
@@ -200,18 +200,18 @@ nir_lower_gs_intrinsics(nir_shader *shader)
exec_list_push_tail(&shader->globals, &var->node);
state.vertex_count_var = var;
- nir_foreach_overload(shader, overload) {
- if (overload->impl) {
+ nir_foreach_function(shader, function) {
+ if (function->impl) {
nir_builder b;
- nir_builder_init(&b, overload->impl);
+ nir_builder_init(&b, function->impl);
state.builder = &b;
- nir_foreach_block(overload->impl, rewrite_intrinsics, &state);
+ nir_foreach_block(function->impl, rewrite_intrinsics, &state);
/* This only works because we have a single main() function. */
- append_set_vertex_count(overload->impl->end_block, &state);
+ append_set_vertex_count(function->impl->end_block, &state);
- nir_metadata_preserve(overload->impl, 0);
+ nir_metadata_preserve(function->impl, 0);
}
}