radeon: Move gfx/dma cs cleanup to r600_common_context_cleanup
authorAaron Watry <awatry@gmail.com>
Tue, 7 Jan 2014 20:45:41 +0000 (14:45 -0600)
committerAaron Watry <awatry@gmail.com>
Thu, 16 Jan 2014 16:10:04 +0000 (10:10 -0600)
commit5ac3229f76f02453ae7e971d515b01fb56ad3fa5
tree5a689d4423d05bd3ee52a52008353444b1764183
parenta05c596a00916ce6a9c9d35ff36cd1e401fddd43
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" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/r600/r600_pipe.c
src/gallium/drivers/radeon/r600_pipe_common.c