zink: fix indentation

no functional changes

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16476>
This commit is contained in:
Mike Blumenkrantz 2022-05-10 12:22:40 -04:00 committed by Marge Bot
parent 69efe357b3
commit 4769b4e610
1 changed files with 10 additions and 10 deletions

View File

@ -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;
}