diff options
author | Kenneth Graunke <[email protected]> | 2018-11-28 15:22:07 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:10 -0800 |
commit | 6cb211121bb2e21cda40f2912d3005882641f530 (patch) | |
tree | 332fb659c02caefbea47f8d659ceaba1b18093d2 /src | |
parent | f73fdb4001365a6097ced767288fa581c689709d (diff) |
iris: Unref unbound_tex resource
Plugs a 12536 byte leak
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/iris/iris_state.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index d241831edf8..6342da5c081 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -4746,6 +4746,8 @@ iris_destroy_state(struct iris_context *ice) } free(ice->state.genx); + pipe_resource_reference(&ice->state.unbound_tex.res, NULL); + pipe_resource_reference(&ice->state.last_res.cc_vp, NULL); pipe_resource_reference(&ice->state.last_res.sf_cl_vp, NULL); pipe_resource_reference(&ice->state.last_res.color_calc, NULL); |