Module: Mesa
Branch: main
Commit: 0f989a840efda4aedee2dbf009c400c428be01d7
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=0f989a840efda4aedee2dbf009c400c428be01d7

Author: Dave Airlie <[email protected]>
Date:   Mon Feb 21 09:35:00 2022 +1000

crocus: fix leak on gen4/5 stencil fallback blit path.

Noticed by Ilia.

Fixes: f3630548f1da ("crocus: initial gallium driver for Intel gfx 4-7")

Reviewed-by: Ilia Mirkin <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15100>

---

 src/gallium/drivers/crocus/crocus_blit.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/crocus/crocus_blit.c 
b/src/gallium/drivers/crocus/crocus_blit.c
index 52255266675..321ba58c0a0 100644
--- a/src/gallium/drivers/crocus/crocus_blit.c
+++ b/src/gallium/drivers/crocus/crocus_blit.c
@@ -433,6 +433,7 @@ crocus_blit(struct pipe_context *ctx, const struct 
pipe_blit_info *info)
                                              info->src.level,
                                              &info->src.box, NULL);
 
+               pipe_surface_release(ctx, &dst_view);
             }
             return;
          }

Reply via email to