It does not preserve everything. It adds and removes instructions and
even adds a variable.
Fixes:
f17b41ab4f01 ("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>
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);
}