summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_draw.c
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2017-03-24 17:03:05 -0400
committerRob Clark <[email protected]>2017-03-24 17:49:00 -0400
commitc03f6f12bbe6fb491c9362b3fd5d39b9f4fd05fd (patch)
tree502fe12a30b11b6a6758b0c476aa4cc5a741aeb6 /src/gallium/drivers/freedreno/freedreno_draw.c
parentb3f81e06d453d09533d7a25defd9a677d8159671 (diff)
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" <[email protected]> Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_draw.c')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_draw.c2
1 files changed, 2 insertions, 0 deletions
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);