asahi: Reformat using the new style
authorKonstantin Seurer <konstantin.seurer@gmail.com>
Sat, 27 May 2023 09:21:11 +0000 (11:21 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 29 May 2023 21:06:12 +0000 (21:06 +0000)
Now, that the foreach macro list is complete (I hope), let's reformat
drivers that enforce correct formatting in CI.

Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23275>

src/asahi/compiler/agx_compile.c
src/asahi/compiler/test/agx_test.h

index c4aa240..cbc2ca9 100644 (file)
@@ -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;
 
index 1663b72..3ac0cd9 100644 (file)
@@ -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;
    }