st/manager: update framebuffer size if texture has been resized

zink/kopper can and does expect this when resizing swapchains,
so don't ignore it

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14541>
This commit is contained in:
Mike Blumenkrantz 2021-09-29 13:15:01 -04:00 committed by Marge Bot
parent 0998621496
commit 3883ca5ea7
1 changed files with 3 additions and 1 deletions

View File

@ -262,7 +262,9 @@ st_framebuffer_validate(struct gl_framebuffer *stfb,
rb = stfb->Attachment[idx].Renderbuffer;
assert(rb);
if (rb->texture == textures[i]) {
if (rb->texture == textures[i] &&
rb->Width == textures[i]->width0 &&
rb->Height == textures[i]->height0) {
pipe_resource_reference(&textures[i], NULL);
continue;
}