iris: don't leak sampler state table resources

This commit is contained in:
Kenneth Graunke 2018-06-16 10:39:26 -07:00
parent 8e186cef2c
commit 7d504f3d52

View file

@ -2763,6 +2763,9 @@ iris_destroy_state(struct iris_context *ice)
}
pipe_surface_reference(&ice->state.framebuffer.zsbuf, NULL);
for (int stage = 0; stage < MESA_SHADER_STAGES; stage++) {
pipe_resource_reference(&ice->state.sampler_table_resource[stage], NULL);
}
free(ice->state.cso_vp);
free(ice->state.cso_depthbuffer);