vulkan/overlay: fix crash on freeing NULL command buffer
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 8 Jul 2019 13:00:59 +0000 (16:00 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 8 Jul 2019 21:49:26 +0000 (21:49 +0000)
commita72351cc763c75d57aee8a85a64859657c3ec7d8
tree2f6f089db95c9081abf2320e69ea1f50acb11aa3
parent6271d1632067d167c56dcc53756ef7303530f14b
vulkan/overlay: fix crash on freeing NULL command buffer

It is legal to call vkFreeCommandBuffers() on NULL command buffers.

This fix requires eb41ce1b012f24 ("util/hash_table: Properly handle
the NULL key in hash_table_u64").

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 4438188f492e1f ("vulkan/overlay: record stats in command buffers and accumulate on exec/submit")
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/vulkan/overlay-layer/overlay.cpp