mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
etnaviv: Convert to use nir_foreach_function_impl
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24037>
This commit is contained in:
parent
1c268196b8
commit
ce2252d265
1 changed files with 5 additions and 6 deletions
|
|
@ -32,10 +32,10 @@
|
|||
void
|
||||
etna_lower_io(nir_shader *shader, struct etna_shader_variant *v)
|
||||
{
|
||||
nir_foreach_function(function, shader) {
|
||||
nir_builder b = nir_builder_create(function->impl);
|
||||
nir_foreach_function_impl(impl, shader) {
|
||||
nir_builder b = nir_builder_create(impl);
|
||||
|
||||
nir_foreach_block(block, function->impl) {
|
||||
nir_foreach_block(block, impl) {
|
||||
nir_foreach_instr_safe(instr, block) {
|
||||
if (instr->type == nir_instr_type_intrinsic) {
|
||||
nir_intrinsic_instr *intr = nir_instr_as_intrinsic(instr);
|
||||
|
|
@ -207,8 +207,7 @@ etna_lower_alu_impl(nir_function_impl *impl, bool has_new_transcendentals)
|
|||
void
|
||||
etna_lower_alu(nir_shader *shader, bool has_new_transcendentals)
|
||||
{
|
||||
nir_foreach_function(function, shader) {
|
||||
if (function->impl)
|
||||
etna_lower_alu_impl(function->impl, has_new_transcendentals);
|
||||
nir_foreach_function_impl(impl, shader) {
|
||||
etna_lower_alu_impl(impl, has_new_transcendentals);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue