mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
zink: always update sampler descriptor layouts on fb surface unbind
this will affect the layout Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17524>
This commit is contained in:
parent
f79d71f59e
commit
b1c1d099a9
1 changed files with 4 additions and 1 deletions
|
|
@ -2679,8 +2679,11 @@ unbind_fb_surface(struct zink_context *ctx, struct pipe_surface *surf, unsigned
|
|||
ctx->rp_changed = true;
|
||||
}
|
||||
res->fb_binds--;
|
||||
if (!res->fb_binds)
|
||||
if (!res->fb_binds) {
|
||||
check_resource_for_batch_ref(ctx, res);
|
||||
if (res->sampler_bind_count[0])
|
||||
update_res_sampler_layouts(ctx, res);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue