vulkan/overlay: fix command buffer stats
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 4 Jul 2019 18:55:49 +0000 (21:55 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sun, 7 Jul 2019 12:47:54 +0000 (15:47 +0300)
commit8f0f727fe4274e222b5a8118c5cb3c7f8cad3d7c
tree515f2c81d52a2a4081dcb73367fcc074348a9c3e
parent5493ec3c199b3190dc5d247d9e2a0eccd5066cf2
vulkan/overlay: fix command buffer stats

Begin/Reset of command buffer both reset the content of the command
buffer. Don't forget to wipe them on Begin.

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