nir: Fix metadata in nir_lower_is_helper_invocation

It does not preserve everything.  It adds and removes instructions and
even adds a variable.

Fixes: f17b41ab4f ("nir: add lowering pass for helperInvocationEXT()")
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24760>
This commit is contained in:
Faith Ekstrand 2023-08-17 17:51:15 -05:00 committed by Marge Bot
parent d620d8d74f
commit 831085afa3

View file

@ -116,6 +116,7 @@ nir_lower_is_helper_invocation(nir_shader *shader)
return nir_shader_instructions_pass(shader,
nir_lower_load_and_store_is_helper,
nir_metadata_all,
nir_metadata_block_index |
nir_metadata_dominance,
is_helper_deref);
}