Mesa (master): r300g: unreference a zbuffer surface after decompression

Marek Olšák mareko at kemper.freedesktop.org
Mon May 9 18:03:58 UTC 2011


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

Author: Marek Olšák <maraeo at gmail.com>
Date:   Sat May  7 23:31:37 2011 +0200

r300g: unreference a zbuffer surface after decompression

---

 src/gallium/drivers/r300/r300_blit.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_blit.c b/src/gallium/drivers/r300/r300_blit.c
index 04ed86c..95a43fe 100644
--- a/src/gallium/drivers/r300/r300_blit.c
+++ b/src/gallium/drivers/r300/r300_blit.c
@@ -377,6 +377,8 @@ void r300_decompress_zmask_locked(struct r300_context *r300)
     r300_decompress_zmask_locked_unsafe(r300);
     r300->context.set_framebuffer_state(&r300->context, &saved_fb);
     util_unreference_framebuffer_state(&saved_fb);
+
+    pipe_surface_reference(&r300->locked_zbuffer, NULL);
 }
 
 /* Copy a block of pixels from one surface to another using HW. */




More information about the mesa-commit mailing list