diff options
author | Aaron Watry <[email protected]> | 2014-01-07 14:45:41 -0600 |
---|---|---|
committer | Aaron Watry <[email protected]> | 2014-01-16 10:10:04 -0600 |
commit | 5ac3229f76f02453ae7e971d515b01fb56ad3fa5 (patch) | |
tree | 5a689d4423d05bd3ee52a52008353444b1764183 /src/gallium/drivers/r600 | |
parent | a05c596a00916ce6a9c9d35ff36cd1e401fddd43 (diff) |
radeon: Move gfx/dma cs cleanup to r600_common_context_cleanup
The radeonsi code was not cleaning up either of these items leading to
leaked memory.
v2: Move cleanup to r600_common_context_cleanup instead of duplicating
the logic for SI
CC: "10.0" <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r-- | src/gallium/drivers/r600/r600_pipe.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index 74e007b2279..e7d586223fd 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/drivers/r600/r600_pipe.c @@ -185,13 +185,6 @@ static void r600_destroy_context(struct pipe_context *context) r600_release_command_buffer(&rctx->start_cs_cmd); - if (rctx->b.rings.gfx.cs) { - rctx->b.ws->cs_destroy(rctx->b.rings.gfx.cs); - } - if (rctx->b.rings.dma.cs) { - rctx->b.ws->cs_destroy(rctx->b.rings.dma.cs); - } - FREE(rctx->start_compute_cs_cmd.buf); r600_common_context_cleanup(&rctx->b); |