Mesa (master): radeonsi/compute: Call si_pm4_free_state() after emitting compute state
Tom Stellard
tstellar at kemper.freedesktop.org
Wed Aug 13 19:21:38 UTC 2014
Module: Mesa
Branch: master
Commit: 1e2e55067117f02542f4aa4b9a15b8eca81c1274
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1e2e55067117f02542f4aa4b9a15b8eca81c1274
Author: Tom Stellard <thomas.stellard at amd.com>
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" <mesa-stable at lists.freedesktop.org>
---
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);
}
More information about the mesa-commit
mailing list