summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-09-13 15:17:29 -0700
committerKenneth Graunke <[email protected]>2016-09-14 12:01:39 -0700
commite6eed3533e578f29e1e40c5db10c44df003fc8da (patch)
tree73de4e5b4d69fbf7e1322deafd3bd01bb2da0f5e /src/compiler/nir
parentbff90aedf1d06c7e746b2d56319b19a624594feb (diff)
nir: Call nir_metadata_preserve from nir_lower_alu_to_scalar().
This is mandatory. Cc: [email protected] Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r--src/compiler/nir/nir_lower_alu_to_scalar.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_lower_alu_to_scalar.c b/src/compiler/nir/nir_lower_alu_to_scalar.c
index 4f72cf7eb32..a84fbdfd32b 100644
--- a/src/compiler/nir/nir_lower_alu_to_scalar.c
+++ b/src/compiler/nir/nir_lower_alu_to_scalar.c
@@ -254,6 +254,9 @@ nir_lower_alu_to_scalar_impl(nir_function_impl *impl)
lower_alu_instr_scalar(nir_instr_as_alu(instr), &builder);
}
}
+
+ nir_metadata_preserve(impl, nir_metadata_block_index |
+ nir_metadata_dominance);
}
void