[Mesa-dev] [PATCH 2/4] i965: Don't forget to free the old singlesample_mt.

Eric Anholt eric at anholt.net
Fri Mar 21 17:45:57 PDT 2014


Fixes a memory leak with MSAA winsys buffers since my move of
singlesample_mt to the rb in 4e0924c5de5f3964e4ca81f923d877dbb59fad0a
---
 src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index d4f7c60..e013de4 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -682,6 +682,7 @@ intel_update_winsys_renderbuffer_miptree(struct brw_context *intel,
    int num_samples = rb->NumSamples;
 
    intel_miptree_release(&irb->mt);
+   intel_miptree_release(&irb->singlesample_mt);
 
    /* Only the front and back buffers, which are color buffers, are allocated
     * through the image loader.
-- 
1.9.0



More information about the mesa-dev mailing list