From: Tom Stellard Date: Fri, 8 Aug 2014 13:38:08 +0000 (-0400) Subject: radeonsi/compute: Call si_pm4_free_state() after emitting compute state X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1e2e55067117f02542f4aa4b9a15b8eca81c1274;p=mesa.git 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" --- diff --git a/src/gallium/drivers/radeonsi/si_compute.c b/src/gallium/drivers/radeonsi/si_compute.c index 2ddd7c2bafd..4ce11bfaa74 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); }