Mesa (master): r600g: Fixed two texture surface leaks in r600_blit_uncompress_depth().

Tilman Sauerbeck tilman at kemper.freedesktop.org
Mon Sep 27 06:47:00 UTC 2010


Module: Mesa
Branch: master
Commit: 4c6344f569c5417b0ea804f6f8216a2b40321480
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4c6344f569c5417b0ea804f6f8216a2b40321480

Author: Tilman Sauerbeck <tilman at code-monkey.de>
Date:   Mon Sep 27 08:32:50 2010 +0200

r600g: Fixed two texture surface leaks in r600_blit_uncompress_depth().

Signed-off-by: Tilman Sauerbeck <tilman at code-monkey.de>

---

 src/gallium/drivers/r600/r600_blit.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_blit.c b/src/gallium/drivers/r600/r600_blit.c
index 5232653..357776c 100644
--- a/src/gallium/drivers/r600/r600_blit.c
+++ b/src/gallium/drivers/r600/r600_blit.c
@@ -200,6 +200,9 @@ int r600_blit_uncompress_depth(struct pipe_context *ctx, struct r600_resource_te
 
 	util_blitter_custom_depth_stencil(rctx->blitter, zsurf, cbsurf, rctx->custom_dsa_flush, depth);
 
+	pipe_surface_reference(&zsurf, NULL);
+	pipe_surface_reference(&cbsurf, NULL);
+
 	/* resume queries */
 	r600_queries_resume(ctx);
 	return 0;




More information about the mesa-commit mailing list