anv: Update the teardown in reverse order of the anv_CreateDevice
authorGwan-gyeong Mun <elongbug@gmail.com>
Fri, 25 Nov 2016 14:34:46 +0000 (23:34 +0900)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 28 Nov 2016 21:11:25 +0000 (21:11 +0000)
commitb178652b41410483dcd82aba495eab6bc892ab15
treee40665617fb5b152b8cfcdc7d5b99e984d7dadd5
parentca4706960c27e7ff46ce6ffa64cdaccfd2dee28b
anv: Update the teardown in reverse order of the anv_CreateDevice

This updates releasing of resource in reverse order of the anv_CreateDevice
to anv_DestroyDevice.
And it fixes resource leak in pthread_mutex, pthread_cond, anv_gem_context.

Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Mun Gwan-gyeong <elongbug@gmail.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_device.c