Mesa (main): nir/gce: pin call instructions
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue May 31 13:07:11 UTC 2022
Module: Mesa
Branch: main
Commit: 9ff04985b9a208843a5e93759f43caff7b2a0b2f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9ff04985b9a208843a5e93759f43caff7b2a0b2f
Author: Karol Herbst <kherbst at redhat.com>
Date: Tue Apr 26 21:22:43 2022 +0200
nir/gce: pin call instructions
Signed-off-by: Karol Herbst <kherbst at redhat.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand at collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16202>
---
src/compiler/nir/nir_opt_gcm.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/compiler/nir/nir_opt_gcm.c b/src/compiler/nir/nir_opt_gcm.c
index 5550cf2a52e..4546e231f2f 100644
--- a/src/compiler/nir/nir_opt_gcm.c
+++ b/src/compiler/nir/nir_opt_gcm.c
@@ -381,6 +381,10 @@ gcm_pin_instructions(nir_function_impl *impl, struct gcm_state *state)
pin_intrinsic(nir_instr_as_intrinsic(instr));
break;
+ case nir_instr_type_call:
+ instr->pass_flags = GCM_INSTR_PINNED;
+ break;
+
case nir_instr_type_jump:
case nir_instr_type_ssa_undef:
case nir_instr_type_phi:
More information about the mesa-commit
mailing list