mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
zink: clamp feedback loop layout to GENERAL if the ext isn't supported
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19140>
This commit is contained in:
parent
bf3edad94c
commit
b6f6224810
1 changed files with 3 additions and 0 deletions
|
|
@ -2543,6 +2543,9 @@ zink_prep_fb_attachment(struct zink_context *ctx, struct zink_surface *surf, uns
|
|||
zink_init_zs_attachment(ctx, &rt);
|
||||
layout = zink_render_pass_attachment_get_barrier_info(&rt, i < ctx->fb_state.nr_cbufs, &pipeline, &access);
|
||||
}
|
||||
if (!zink_screen(ctx->base.screen)->info.have_EXT_attachment_feedback_loop_layout &&
|
||||
layout == VK_IMAGE_LAYOUT_ATTACHMENT_FEEDBACK_LOOP_OPTIMAL_EXT)
|
||||
layout = VK_IMAGE_LAYOUT_GENERAL;
|
||||
zink_screen(ctx->base.screen)->image_barrier(ctx, res, layout, access, pipeline);
|
||||
res->obj->unordered_read = res->obj->unordered_write = false;
|
||||
if (i == ctx->fb_state.nr_cbufs && res->sampler_bind_count[0])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue