From 988545002e4aac35557c7f09c222d0f126b4dbec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sun, 5 Mar 2023 00:21:16 -0500 Subject: [PATCH] nir: handle more opcodes in nir_lower_io_to_scalar MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit It just works. Reviewed-by: Qiang Yu Reviewed-by: Timur Kristóf Part-of: --- src/compiler/nir/nir_lower_io_to_scalar.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.7.4