OSDN Git Service

anv: Handle null in all destructors
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 11 Nov 2016 05:32:32 +0000 (21:32 -0800)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 24 Nov 2016 16:34:40 +0000 (16:34 +0000)
commit8dbdbc21910a6d37c381535186f9e728fff8690d
tree32819901880e1092e9f5d5054c468db1196f41c1
parent045420ea06b6aacdaab3dbf5915c3747093e6506
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>
(cherry picked from commit 49f08ad77f51cc344e4bfe60ba9f8d9fccfbd753)
[Emil Velikov: color_rt_surface_state is still around]
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Conflicts:
src/intel/vulkan/anv_image.c
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