return false;
if ((intr->intrinsic == nir_intrinsic_load_input ||
- intr->intrinsic == nir_intrinsic_load_per_vertex_input) &&
+ intr->intrinsic == nir_intrinsic_load_per_vertex_input ||
+ intr->intrinsic == nir_intrinsic_load_interpolated_input) &&
(mask & nir_var_shader_in)) {
lower_load_input_to_scalar(b, intr);
return true;
}
- if (intr->intrinsic == nir_intrinsic_load_per_vertex_output &&
+ if ((intr->intrinsic == nir_intrinsic_load_output ||
+ intr->intrinsic == nir_intrinsic_load_per_vertex_output) &&
(mask & nir_var_shader_out)) {
lower_load_input_to_scalar(b, intr);
return true;