From: Rhys Perry Date: Mon, 14 Oct 2019 16:15:37 +0000 (+0100) Subject: nir/sink,nir/move: move/sink load_per_vertex_input X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=04fac72ec77f9a19e56ec95f7a0b857f85438ab3;p=mesa.git nir/sink,nir/move: move/sink load_per_vertex_input Signed-off-by: Rhys Perry Acked-by: Jason Ekstrand Acked-by: Rob Clark Part-of: --- diff --git a/src/compiler/nir/nir_opt_sink.c b/src/compiler/nir/nir_opt_sink.c index 0095a333a29..e68ad9cd607 100644 --- a/src/compiler/nir/nir_opt_sink.c +++ b/src/compiler/nir/nir_opt_sink.c @@ -50,7 +50,8 @@ nir_can_move_instr(nir_instr *instr, nir_move_options options) if ((options & nir_move_load_input) && (intrin->intrinsic == nir_intrinsic_load_interpolated_input || - intrin->intrinsic == nir_intrinsic_load_input)) + intrin->intrinsic == nir_intrinsic_load_input || + intrin->intrinsic == nir_intrinsic_load_per_vertex_input)) return true; }