mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-04 17:10:26 +01:00
kopper: invalidate drawables when resizing textures in place
this guarantees that swapchains shared between contexts will stay in sync Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16351>
This commit is contained in:
parent
b78272daa5
commit
ef86acd25c
1 changed files with 2 additions and 0 deletions
|
|
@ -559,6 +559,8 @@ kopper_allocate_textures(struct dri_context *ctx,
|
|||
if (drawable->textures[i] && i < ST_ATTACHMENT_DEPTH_STENCIL && !is_pixmap) {
|
||||
drawable->textures[i]->width0 = width;
|
||||
drawable->textures[i]->height0 = height;
|
||||
/* force all contexts to revalidate framebuffer */
|
||||
p_atomic_inc(&drawable->base.stamp);
|
||||
} else
|
||||
pipe_resource_reference(&drawable->textures[i], NULL);
|
||||
pipe_resource_reference(&drawable->msaa_textures[i], NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue