r600g: Fixed two texture surface leaks in r600_blit_uncompress_depth().
authorTilman Sauerbeck <tilman@code-monkey.de>
Mon, 27 Sep 2010 06:32:50 +0000 (08:32 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Mon, 27 Sep 2010 06:37:12 +0000 (08:37 +0200)
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
src/gallium/drivers/r600/r600_blit.c

index 52326534e6ebd7cae30c8f0c18c239c383713eb9..357776c55ef61ee0e9ee7232c9cf7c555238b8f8 100644 (file)
@@ -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;