meta: Cleanup the resources we allocate.
authorAntoine Labour <piman@chromium.org>
Fri, 25 May 2012 01:08:27 +0000 (18:08 -0700)
committerStéphane Marchesin <marcheu@chromium.org>
Tue, 12 Jun 2012 21:42:22 +0000 (14:42 -0700)
commit53feb8ecdc74502c940a749b9ce89e68625c69a5
tree0aac3d95182843f3b0d591b420b6c9f8d9b82e8d
parent0256edd709d976198d5354fdd88143d8da9e51d5
meta: Cleanup the resources we allocate.

When we have multiple shared contexts, and one of them is
long-running, this will lead to never freeing those resources
since they are shared. Instead, free them right away on context
destruction since we know the other context isn't using them.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
NOTE: This is a candidate for the 8.0 branch.
src/mesa/drivers/common/meta.c