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>
(cherry picked from commit 831085afa3)
This commit is contained in:
Faith Ekstrand 2023-08-17 17:51:15 -05:00 committed by Dylan Baker
parent 51d0d942a0
commit 87aa5bdf9b
2 changed files with 3 additions and 2 deletions

View file

@ -5824,7 +5824,7 @@
"description": "nir: Fix metadata in nir_lower_is_helper_invocation",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "f17b41ab4f017b562fdf7c388200e68c22105331",
"notes": null

View file

@ -118,6 +118,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);
}