mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 00:30:11 +01:00
zink: only update layout when doing mixed zs attachment renderpass check
avoid doing any sort of extra work here and avoid multi-context weirdness cc: mesa-stable Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16900>
This commit is contained in:
parent
8f9c21b15e
commit
cb5973a3dd
1 changed files with 3 additions and 1 deletions
|
|
@ -2214,7 +2214,9 @@ zink_prep_fb_attachment(struct zink_context *ctx, struct zink_surface *surf, uns
|
|||
unsigned find = res->bind_count[0] - res->image_bind_count[0];
|
||||
for (unsigned i = 0; find && i < PIPE_SHADER_COMPUTE; i++) {
|
||||
u_foreach_bit(slot, res->sampler_binds[i]) {
|
||||
update_descriptor_state_sampler(ctx, i, slot, res);
|
||||
/* only set layout, skip rest of update */
|
||||
if (ctx->di.descriptor_res[ZINK_DESCRIPTOR_TYPE_SAMPLER_VIEW][i][slot] == res)
|
||||
ctx->di.textures[i][slot].imageLayout = zink_descriptor_util_image_layout_eval(ctx, res, false);
|
||||
find--;
|
||||
if (!find) break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue