nir: rename nir_op_fne to nir_op_fneu
[mesa.git] / src / compiler / nir / nir_lower_point_size_mov.c
index efe162c8d8fbd2e7b30f4b8ea7ea5151b6715217..f0526ba55fb6873f8b01bd30e2e6f63796f5b2df 100644 (file)
@@ -71,13 +71,9 @@ nir_lower_point_size_mov(nir_shader *shader,
    assert(shader->info.stage != MESA_SHADER_FRAGMENT &&
           shader->info.stage != MESA_SHADER_COMPUTE);
 
-   nir_variable *out = NULL;
-   nir_foreach_shader_out_variable(var, shader) {
-      if (var->data.location == VARYING_SLOT_PSIZ) {
-         out = var;
-         break;
-      }
-   }
+   nir_variable *out =
+      nir_find_variable_with_location(shader, nir_var_shader_out,
+                                      VARYING_SLOT_PSIZ);
 
    lower_impl(nir_shader_get_entrypoint(shader), pointsize_state_tokens,
               out);