anv: Handle null in all destructors
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 11 Nov 2016 05:32:32 +0000 (21:32 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 17 Nov 2016 04:07:23 +0000 (20:07 -0800)
commit49f08ad77f51cc344e4bfe60ba9f8d9fccfbd753
tree6c4d7b7776e4ef4bd1a6880943e466e80c7f3058
parentd0646c8015015b90bcc933e23bdd927cc0c81bb7
anv: Handle null in all destructors

This fixes a bunch of new CTS tests which look for exactly this.  Even in
the cases where we just call vk_free to free a CPU data structure, we still
handle NULL explicitly.  This way we're less likely to forget to handle
NULL later should we actually do something less trivial.

Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/intel/vulkan/anv_cmd_buffer.c
src/intel/vulkan/anv_descriptor_set.c
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_image.c
src/intel/vulkan/anv_pass.c
src/intel/vulkan/anv_pipeline.c
src/intel/vulkan/anv_pipeline_cache.c
src/intel/vulkan/anv_query.c
src/intel/vulkan/anv_wsi.c