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

Author: Tom Stellard <[email protected]>
Date:   Fri Aug  8 09:38:08 2014 -0400

radeonsi/compute: Call si_pm4_free_state() after emitting compute state

This will decrement the reference count for buffers referenced in the
command stream will prevent us from leaking them.

CC: "10.2" <[email protected]>

---

 src/gallium/drivers/radeonsi/si_compute.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeonsi/si_compute.c 
b/src/gallium/drivers/radeonsi/si_compute.c
index 2ddd7c2..4ce11bf 100644
--- a/src/gallium/drivers/radeonsi/si_compute.c
+++ b/src/gallium/drivers/radeonsi/si_compute.c
@@ -372,8 +372,8 @@ static void si_launch_grid(
        }
 #endif
 
-       FREE(pm4);
        FREE(kernel_args);
+       si_pm4_free_state(sctx, pm4, ~0);
 }
 
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to