iris: Unref unbound_tex resource
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 28 Nov 2018 23:22:07 +0000 (15:22 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:10 +0000 (10:26 -0800)
Plugs a 12536 byte leak

src/gallium/drivers/iris/iris_state.c

index d241831edf8a62e3aa4bd2cc51ee7747be1282b1..6342da5c08148730da8f7cfb1c9dd62a2b286288 100644 (file)
@@ -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);