iris: Fix memory leak for draw parameter resources

Need to pitch these on context destroy.
This commit is contained in:
Kenneth Graunke 2019-06-27 11:49:41 -07:00
parent 50eb1c1396
commit d65819f054
1 changed files with 3 additions and 0 deletions

View File

@ -5614,6 +5614,9 @@ iris_destroy_state(struct iris_context *ice)
{
struct iris_genx_state *genx = ice->state.genx;
pipe_resource_reference(&ice->draw.draw_params_res, NULL);
pipe_resource_reference(&ice->draw.derived_draw_params_res, NULL);
uint64_t bound_vbs = ice->state.bound_vertex_buffers;
while (bound_vbs) {
const int i = u_bit_scan64(&bound_vbs);