nir: use enum operator helper for nir_variable_mode and nir_metadata

those are used quite a bit

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6520>
This commit is contained in:
Karol Herbst
2020-08-31 18:08:49 +02:00
committed by Marge Bot
parent 76a1fb3b42
commit 70cbddc4a7
8 changed files with 26 additions and 33 deletions

View File

@@ -636,8 +636,7 @@ r600_nir_lower_atomics(nir_shader *shader)
}
if (impl_progress) {
nir_metadata_preserve(function->impl, (nir_metadata)(nir_metadata_block_index |
nir_metadata_dominance));
nir_metadata_preserve(function->impl, nir_metadata_block_index | nir_metadata_dominance);
progress = true;
}
}