mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-14 14:28:08 +02:00
iris: Fix memory leak of SO targets
We need to pitch these on context destroy.
This commit is contained in:
parent
d65819f054
commit
3d3685d354
1 changed files with 4 additions and 0 deletions
|
|
@ -5624,6 +5624,10 @@ iris_destroy_state(struct iris_context *ice)
|
||||||
}
|
}
|
||||||
free(ice->state.genx);
|
free(ice->state.genx);
|
||||||
|
|
||||||
|
for (int i = 0; i < 4; i++) {
|
||||||
|
pipe_so_target_reference(&ice->state.so_target[i], NULL);
|
||||||
|
}
|
||||||
|
|
||||||
for (unsigned i = 0; i < ice->state.framebuffer.nr_cbufs; i++) {
|
for (unsigned i = 0; i < ice->state.framebuffer.nr_cbufs; i++) {
|
||||||
pipe_surface_reference(&ice->state.framebuffer.cbufs[i], NULL);
|
pipe_surface_reference(&ice->state.framebuffer.cbufs[i], NULL);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue