Module: Mesa Branch: main Commit: 13c9b490a7dcec7ddd773ad1e3b07d99b97fb1af URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=13c9b490a7dcec7ddd773ad1e3b07d99b97fb1af
Author: Konstantin Seurer <[email protected]> Date: Sat May 27 11:21:11 2023 +0200 asahi: Reformat using the new style Now, that the foreach macro list is complete (I hope), let's reformat drivers that enforce correct formatting in CI. Acked-by: Alyssa Rosenzweig <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23275> --- src/asahi/compiler/agx_compile.c | 3 +-- src/asahi/compiler/test/agx_test.h | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/asahi/compiler/agx_compile.c b/src/asahi/compiler/agx_compile.c index c4aa240b882..cbc2ca9a8b5 100644 --- a/src/asahi/compiler/agx_compile.c +++ b/src/asahi/compiler/agx_compile.c @@ -2037,8 +2037,7 @@ agx_remap_varyings_vs(nir_shader *nir, struct agx_varyings_vs *varyings) varyings->slots[VARYING_SLOT_POS] = base; base += 4; - u_foreach_bit64(loc, nir->info.outputs_written) - { + u_foreach_bit64(loc, nir->info.outputs_written) { if (loc == VARYING_SLOT_POS || loc == VARYING_SLOT_PSIZ) continue; diff --git a/src/asahi/compiler/test/agx_test.h b/src/asahi/compiler/test/agx_test.h index 1663b7293b5..3ac0cd913b9 100644 --- a/src/asahi/compiler/test/agx_test.h +++ b/src/asahi/compiler/test/agx_test.h @@ -62,8 +62,7 @@ agx_block_equal(agx_block *A, agx_block *B) return false; list_pair_for_each_entry(agx_instr, insA, insB, &A->instructions, - &B->instructions, link) - { + &B->instructions, link) { if (!agx_instr_equal(insA, insB)) return false; } @@ -78,8 +77,7 @@ agx_shader_equal(agx_context *A, agx_context *B) return false; list_pair_for_each_entry(agx_block, blockA, blockB, &A->blocks, &B->blocks, - link) - { + link) { if (!agx_block_equal(blockA, blockB)) return false; }
