radv: Move radv_nir_lower_view_index to new file.

Also ran clang-format on the affected code.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21971>
This commit is contained in:
Timur Kristóf
2023-03-16 13:25:16 -07:00
committed by Marge Bot
parent 1e2a5858f4
commit 67de4b54fe
6 changed files with 98 additions and 69 deletions

View File

@@ -1763,7 +1763,7 @@ radv_pipeline_link_shaders(const struct radv_device *device,
}
/* Lower the view index to map on the layer. */
NIR_PASS(_, consumer, radv_lower_view_index, producer->info.stage == MESA_SHADER_MESH);
NIR_PASS(_, consumer, radv_nir_lower_view_index, producer->info.stage == MESA_SHADER_MESH);
}
if (pipeline_key->optimisations_disabled)