Mesa (master): r300g: fix a surface leak when flushing ZMASK
Marek Olšák
mareko at kemper.freedesktop.org
Sat Jan 8 08:42:56 UTC 2011
Module: Mesa
Branch: master
Commit: 7c16a77b0009382e4fa1f2a5e5ee2ad333bc7e78
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7c16a77b0009382e4fa1f2a5e5ee2ad333bc7e78
Author: Marek Olšák <maraeo at gmail.com>
Date: Sat Jan 8 09:42:17 2011 +0100
r300g: fix a surface leak when flushing ZMASK
---
src/gallium/drivers/r300/r300_blit.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/r300/r300_blit.c b/src/gallium/drivers/r300/r300_blit.c
index 6e88643..017db48 100644
--- a/src/gallium/drivers/r300/r300_blit.c
+++ b/src/gallium/drivers/r300/r300_blit.c
@@ -326,6 +326,7 @@ void r300_flush_depth_stencil(struct pipe_context *pipe,
r300->z_decomp_rd = FALSE;
tex->zmask_in_use[level] = FALSE;
+ pipe_surface_reference(&dstsurf, NULL);
}
/* Copy a block of pixels from one surface to another using HW. */
More information about the mesa-commit
mailing list