summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-01-12 02:04:14 -0600
committerJason Ekstrand <[email protected]>2019-01-12 17:55:49 -0600
commit821b6861ec7c267599e28d600a833e7a2a79ccd4 (patch)
tree97122c835ec5e740046aa50c0182fade4f435f6f /src/compiler
parent24c8108ea6ac2fb71f9fff7c05354114319c0fc9 (diff)
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 <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/nir/nir_opt_gcm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_opt_gcm.c b/src/compiler/nir/nir_opt_gcm.c
index 879a77a884b..e7d3f8ec424 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: