nir/sink,nir/move: move/sink load_per_vertex_input
authorRhys Perry <pendingchaos02@gmail.com>
Mon, 14 Oct 2019 16:15:37 +0000 (17:15 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 14 Jan 2020 13:56:45 +0000 (13:56 +0000)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
Acked-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2420>

src/compiler/nir/nir_opt_sink.c

index 0095a333a2966bd02a837cfda0a99a6e96bace8c..e68ad9cd607a2ddaef06978a8ea9d3edd83b4cbe 100644 (file)
@@ -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;
    }