i915: use util_unreference_framebuffer_state to unref fb state

Fixes: f5bde99cbd ("gallium: plumb resolve attachments through from frontends -> pipe_framebuffer_state")

Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22673>
(cherry picked from commit b1449e3e67)
This commit is contained in:
Mike Blumenkrantz 2023-04-24 16:24:56 -04:00 committed by Eric Engestrom
parent 5b037aaac4
commit 67ccf01ff5
2 changed files with 2 additions and 5 deletions

View file

@ -679,7 +679,7 @@
"description": "i915: use util_unreference_framebuffer_state to unref fb state",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "f5bde99cbdd208916795dc463663ddd97428ecc1"
},

View file

@ -152,10 +152,7 @@ i915_destroy(struct pipe_context *pipe)
i915->iws->batchbuffer_destroy(i915->batch);
/* unbind framebuffer */
for (i = 0; i < PIPE_MAX_COLOR_BUFS; i++) {
pipe_surface_reference(&i915->framebuffer.cbufs[i], NULL);
}
pipe_surface_reference(&i915->framebuffer.zsbuf, NULL);
util_unreference_framebuffer_state(&i915->framebuffer);
/* unbind constant buffers */
for (i = 0; i < PIPE_SHADER_TYPES; i++) {