Mesa (main): zink: fix indentation

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri May 20 16:58:32 UTC 2022


Module: Mesa
Branch: main
Commit: 4769b4e61071d1b81ce93c9d0b4dbe81c33f6624
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4769b4e61071d1b81ce93c9d0b4dbe81c33f6624

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Tue May 10 12:22:40 2022 -0400

zink: fix indentation

no functional changes

Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16476>

---

 src/gallium/drivers/zink/zink_context.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c
index e1ea094dbb4..d49461e587b 100644
--- a/src/gallium/drivers/zink/zink_context.c
+++ b/src/gallium/drivers/zink/zink_context.c
@@ -2035,16 +2035,16 @@ zink_prep_fb_attachment(struct zink_context *ctx, struct zink_surface *surf, uns
    VkImageLayout layout = zink_render_pass_attachment_get_barrier_info(&ctx->gfx_pipeline_state.render_pass->state.rts[i],
                                                                        i < ctx->fb_state.nr_cbufs, &pipeline, &access);
    zink_resource_image_barrier(ctx, res, layout, access, pipeline);
-    if (i == ctx->fb_state.nr_cbufs && res->bind_count[0] && res->bind_count[0] != res->image_bind_count[0]) {
-       unsigned find = res->bind_count[0] - res->image_bind_count[0];
-       for (unsigned i = 0; i < PIPE_SHADER_COMPUTE; i++) {
-          u_foreach_bit(slot, res->sampler_binds[i]) {
-             update_descriptor_state_sampler(ctx, i, slot, res);
-             find--;
-             if (!find) break;
-          }
-       }
-    }
+   if (i == ctx->fb_state.nr_cbufs && res->bind_count[0] && res->bind_count[0] != res->image_bind_count[0]) {
+      unsigned find = res->bind_count[0] - res->image_bind_count[0];
+      for (unsigned i = 0; i < PIPE_SHADER_COMPUTE; i++) {
+         u_foreach_bit(slot, res->sampler_binds[i]) {
+            update_descriptor_state_sampler(ctx, i, slot, res);
+            find--;
+            if (!find) break;
+         }
+      }
+   }
    return surf->image_view;
 }
 



More information about the mesa-commit mailing list