nir/nir_lower_vec3_to_vec4: Use the nir_shader_instructions_pass() helper
authorThomas H.P. Andersen <phomes@gmail.com>
Sun, 4 Jul 2021 09:41:52 +0000 (11:41 +0200)
committerMarge Bot <emma+marge@anholt.net>
Sat, 22 Apr 2023 23:35:37 +0000 (23:35 +0000)
commita18a51a708a86f51e0a5ab031b379f65bc84fb49
treedd5212f96659a5b85049a0d3a01ec607fa076c79
parente86c28a78b723879a894e804d21a1dd8321b134e
nir/nir_lower_vec3_to_vec4: Use the nir_shader_instructions_pass() helper

Extracts some per-impl code to nir_lower_vec3_to_vec4 and then
converts to use the nir_shader_instructions_pass helper.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11683>
src/compiler/nir/nir_lower_vec3_to_vec4.c