[Mesa-dev] [PATCH] r600g: Fixed two texture surface leaks in r600_blit_uncompress_depth().

Tilman Sauerbeck tilman at code-monkey.de
Sun Sep 26 12:28:52 PDT 2010


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 c30a7c1..7f411ae 100644
--- a/src/gallium/drivers/r600/r600_blit.c
+++ b/src/gallium/drivers/r600/r600_blit.c
@@ -203,6 +203,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;
-- 
1.7.2.3



More information about the mesa-dev mailing list