From 1e2e55067117f02542f4aa4b9a15b8eca81c1274 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Fri, 8 Aug 2014 09:38:08 -0400 Subject: [PATCH] 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" --- 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 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); } -- 2.30.2