diff options
author | Rob Clark <[email protected]> | 2017-03-24 17:03:05 -0400 |
---|---|---|
committer | Andres Gomez <[email protected]> | 2017-03-29 19:13:18 +0300 |
commit | c57a03585052e3bd7d61d1307cae9a922e663c20 (patch) | |
tree | 1cd0f37b71d7d800cdd27943ec4c4cf41fe04f52 | |
parent | 6741256351a34c656f12e78978a6f8f988e9ec18 (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]>
(cherry picked from commit c03f6f12bbe6fb491c9362b3fd5d39b9f4fd05fd)
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_draw.c | 2 |
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 cfe13cd6782..319e2eb678e 100644 --- a/src/gallium/drivers/freedreno/freedreno_draw.c +++ b/src/gallium/drivers/freedreno/freedreno_draw.c @@ -264,6 +264,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); |