radv: fix crash in vkCmdClearAttachments with unused attachment
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 22 Jul 2019 08:12:48 +0000 (10:12 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 22 Jul 2019 12:25:54 +0000 (14:25 +0200)
commitb5116d3cb7b6d81532fa15f8d94942ce94051652
tree262094542cee7761cfdccc6b3f588935970787af
parent253be494022c415b766eff47560b80ba7b577a02
radv: fix crash in vkCmdClearAttachments with unused attachment

depth_stencil_attachment and/or ds_resolve attachment can be NULL.

This fixes crashes with
dEQP-VK.renderpass.suballocation.unused_clear_attachments.*

Cc: 19.1 <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_meta_clear.c