radv: don't crash on null swapchain destroy.
authorDave Airlie <airlied@redhat.com>
Tue, 15 Nov 2016 20:11:51 +0000 (20:11 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 15 Nov 2016 23:18:03 +0000 (09:18 +1000)
commit38ab625c5f5ca06b78af2892422a966dc659f8cd
tree9442dd71bc123a047f7d717e020eca1b4c70df82
parent253fa25d09b77e18f736b97da07d57be0e6c4200
radv: don't crash on null swapchain destroy.

Just return if the passed in swapchain is NULL.

Fixes: dEQP-VK.wsi.xlib.swapchain.destroy.null_handle
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_wsi.c