Mesa (master): nir/gcm: Support deref instructions
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Jan 12 23:56:26 UTC 2019
Module: Mesa
Branch: master
Commit: 821b6861ec7c267599e28d600a833e7a2a79ccd4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=821b6861ec7c267599e28d600a833e7a2a79ccd4
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date: Sat Jan 12 02:04:14 2019 -0600
nir/gcm: Support deref instructions
Even though no one's been brave enough to ever use this pass, I like to
keep it functionally working.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
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 879a77a884..e7d3f8ec42 100644
--- a/src/compiler/nir/nir_opt_gcm.c
+++ b/src/compiler/nir/nir_opt_gcm.c
@@ -128,6 +128,10 @@ gcm_pin_instructions_block(nir_block *block, struct gcm_state *state)
}
break;
+ case nir_instr_type_deref:
+ instr->pass_flags = 0;
+ break;
+
case nir_instr_type_tex:
switch (nir_instr_as_tex(instr)->op) {
case nir_texop_tex:
More information about the mesa-commit
mailing list