From: Marek Olšák Date: Sun, 5 Mar 2023 05:21:16 +0000 (-0500) Subject: nir: handle more opcodes in nir_lower_io_to_scalar X-Git-Tag: upstream/23.3.3~9775 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=988545002e4aac35557c7f09c222d0f126b4dbec;p=platform%2Fupstream%2Fmesa.git nir: handle more opcodes in nir_lower_io_to_scalar It just works. Reviewed-by: Qiang Yu Reviewed-by: Timur Kristóf Part-of: --- diff --git a/src/compiler/nir/nir_lower_io_to_scalar.c b/src/compiler/nir/nir_lower_io_to_scalar.c index 6b15792..cc9f738 100644 --- a/src/compiler/nir/nir_lower_io_to_scalar.c +++ b/src/compiler/nir/nir_lower_io_to_scalar.c @@ -231,13 +231,15 @@ nir_lower_io_to_scalar_instr(nir_builder *b, nir_instr *instr, void *data) 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;