diff options
author | Kenneth Graunke <[email protected]> | 2015-11-02 21:38:56 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2015-11-03 17:06:48 -0800 |
commit | bc3942e2970c60a816cf954b1fa4d416d0852bd9 (patch) | |
tree | 0bb6d6b259a8842022039eba6d108f3e33b3863b /src/glsl | |
parent | 0f037bd71ffe083c05cd0867ef54bce91ff84243 (diff) |
nir: Properly invalidate metadata in nir_lower_vec_to_movs().
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Reviewed-by: Eduardo Lima Mitev <[email protected]>
Cc: [email protected]
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/nir/nir_lower_vec_to_movs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glsl/nir/nir_lower_vec_to_movs.c b/src/glsl/nir/nir_lower_vec_to_movs.c index c08b721dae4..736a66c8639 100644 --- a/src/glsl/nir/nir_lower_vec_to_movs.c +++ b/src/glsl/nir/nir_lower_vec_to_movs.c @@ -288,6 +288,11 @@ nir_lower_vec_to_movs_impl(nir_function_impl *impl) nir_foreach_block(impl, lower_vec_to_movs_block, &state); + if (state.progress) { + nir_metadata_preserve(impl, nir_metadata_block_index | + nir_metadata_dominance); + } + return state.progress; } |