From: Rob Clark Date: Fri, 24 Mar 2017 21:03:05 +0000 (-0400) Subject: freedreno: fix memory leak X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c03f6f12bbe6fb491c9362b3fd5d39b9f4fd05fd;p=mesa.git freedreno: fix memory leak Otherwise blitter would still hold a ref to, for example, sampler- views. To reproduce: glmark2 -b desktop:duration=2 --run-forever Fixes: a8e6734 ("freedreno: support for using generic clear path") Cc: "13.0 17.0" Signed-off-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/freedreno_draw.c b/src/gallium/drivers/freedreno/freedreno_draw.c index edeb88bf34b..a3c35cbce96 100644 --- a/src/gallium/drivers/freedreno/freedreno_draw.c +++ b/src/gallium/drivers/freedreno/freedreno_draw.c @@ -276,6 +276,8 @@ fd_blitter_clear(struct pipe_context *pctx, unsigned buffers, util_blitter_restore_constant_buffer_state(blitter); util_blitter_restore_vertex_states(blitter); util_blitter_restore_fragment_states(blitter); + util_blitter_restore_textures(blitter); + util_blitter_restore_fb_state(blitter); util_blitter_restore_render_cond(blitter); util_blitter_unset_running_flag(blitter);