diff options
author | Kenneth Graunke <[email protected]> | 2019-06-27 11:49:41 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-06-27 14:59:39 -0700 |
commit | d65819f05454fb7dd06d40877f67fc6cb6bf693a (patch) | |
tree | 81fecd69978ca90b6b889afbfa86cc550a0a59cc /src/gallium/drivers | |
parent | 50eb1c1396f3424d5a1d30421d91876f0ca404bd (diff) |
iris: Fix memory leak for draw parameter resources
Need to pitch these on context destroy.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/iris/iris_state.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index d717b48cf2b..8d7b2557b76 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -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); |