vulkan/overlay: fix timestamp query emission with no pipeline stats
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 16 May 2019 15:59:46 +0000 (16:59 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 21 May 2019 13:08:35 +0000 (14:08 +0100)
commit213d6527d49aeafe28d2bd320ad462730e0d56eb
tree47b18e1271134f3ed343d2f742ec0b94aabefea8
parenteb85124a9f6e9cb94d0d4a99f91bbae374777e3a
vulkan/overlay: fix timestamp query emission with no pipeline stats

The
   if (!pipe && timestamp)

logic was broken. It should have been :

   if (!pipe && !timestamp)

Let just drop this condition as the following code does the right
thing for all cases.

An error was appearing with the following variables :

VK_INSTANCE_LAYERS=VK_LAYER_MESA_overlay VK_LAYER_MESA_OVERLAY_CONFIG=gpu_timing

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: ea7a6fa98055ad ("vulkan/overlay: add pipeline statistic & timestamps support")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/vulkan/overlay-layer/overlay.cpp