mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
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 commitb1449e3e67)
This commit is contained in:
parent
5b037aaac4
commit
67ccf01ff5
2 changed files with 2 additions and 5 deletions
|
|
@ -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"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue