zink: remove redundant 'blitting' check in zink_prep_fb_attachment()
this is a return conditional 2 lines above Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22423>
This commit is contained in:
committed by
Marge Bot
parent
4f3ddf31e0
commit
aec938b1f8
@@ -2930,7 +2930,7 @@ zink_prep_fb_attachment(struct zink_context *ctx, struct zink_surface *surf, uns
|
||||
if (ctx->blitting)
|
||||
return surf->image_view;
|
||||
VkImageLayout layout;
|
||||
if (ctx->track_renderpasses && !ctx->blitting) {
|
||||
if (ctx->track_renderpasses) {
|
||||
layout = zink_tc_renderpass_info_parse(ctx, &ctx->dynamic_fb.tc_info, i < ctx->fb_state.nr_cbufs ? i : PIPE_MAX_COLOR_BUFS, &pipeline, &access);
|
||||
assert(i < ctx->fb_state.nr_cbufs || layout != VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL || !zink_fb_clear_enabled(ctx, PIPE_MAX_COLOR_BUFS));
|
||||
if (i == ctx->fb_state.nr_cbufs && zink_fb_clear_enabled(ctx, PIPE_MAX_COLOR_BUFS))
|
||||
|
||||
Reference in New Issue
Block a user