vulkan/overlay: record stats in command buffers and accumulate on exec/submit
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sat, 2 Mar 2019 17:15:41 +0000 (17:15 +0000)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 2 May 2019 16:02:06 +0000 (17:02 +0100)
commit4438188f492e1f7c32c2728ef26a3772cd80081d
treeb4c4aed70e404fd5c40574051b35ef2b937ed67d
parent9eddceef446ec90bcbd7a6239a54772b32d47f2e
vulkan/overlay: record stats in command buffers and accumulate on exec/submit

This significantly reworks how numbers displayed are computed. We
accumulate operations written into command buffers and add those to
the device when submitted to a queue. These collected values are then
used to compute per frame overlay data.

We also accumulate the data over the sampling fps period to produce
numbers for that period of time.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/vulkan/overlay-layer/overlay.cpp
src/vulkan/overlay-layer/overlay_params.h