summaryrefslogtreecommitdiff
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2014-08-08 09:38:08 -0400
committerEmil Velikov <emil.l.velikov@gmail.com>2014-08-27 13:25:19 +0100
commita92c1b1904963bc0468187a893faeedcebd8d744 (patch)
treea543c293211624ecb8e768eaa799ca7951a91dbf /src/gallium/drivers
parentc5885eca151bd6d0405c68b8494c94be3c3f0050 (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" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 1e2e55067117f02542f4aa4b9a15b8eca81c1274)
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/radeonsi/si_compute.c2
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 34b82cfd19b..691e52a452c 100644
--- a/src/gallium/drivers/radeonsi/si_compute.c
+++ b/src/gallium/drivers/radeonsi/si_compute.c
@@ -288,8 +288,8 @@ static void si_launch_grid(
}
#endif
- FREE(pm4);
FREE(kernel_args);
+ si_pm4_free_state(sctx, pm4, ~0);
}