diff options
author | Tom Stellard <[email protected]> | 2014-08-08 09:38:08 -0400 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2014-08-13 14:17:02 -0400 |
commit | 1e2e55067117f02542f4aa4b9a15b8eca81c1274 (patch) | |
tree | 3022c02d0983f265ba5c17e55e9a3865d3e5cceb /src/gallium | |
parent | 05e9681d5524981db623c077708816476553f908 (diff) |
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]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_compute.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |