Mesa (master): nir/scheduler: Handle nir_intrinsic_load_per_vertex_input

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jun 22 07:03:07 UTC 2020


Module: Mesa
Branch: master
Commit: df8dc30cea76179c7bca510ed48dff938982be8b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=df8dc30cea76179c7bca510ed48dff938982be8b

Author: Neil Roberts <nroberts at igalia.com>
Date:   Tue Jun 16 19:22:47 2020 +0200

nir/scheduler: Handle nir_intrinsic_load_per_vertex_input

load_per_vertex_input should probably be handled in the same way as a
regular load_input. I think the nir_schedule pass was written before V3D
had geometry shader support, so that is probably why it hasn’t taken
this into account until now.

Reviewed-by: Eric Anholt <eric at anholt.net>
Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5561>

---

 src/compiler/nir/nir_schedule.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/compiler/nir/nir_schedule.c b/src/compiler/nir/nir_schedule.c
index 8428f867ccc..8d42585ac6f 100644
--- a/src/compiler/nir/nir_schedule.c
+++ b/src/compiler/nir/nir_schedule.c
@@ -333,6 +333,7 @@ nir_schedule_intrinsic_deps(nir_deps_state *state,
       break;
 
    case nir_intrinsic_load_input:
+   case nir_intrinsic_load_per_vertex_input:
       add_read_dep(state, state->load_input, n);
       break;
 



More information about the mesa-commit mailing list