Fix build for Unices without CLOCK_MONOTONIC_RAW
authorLiam Middlebrook <lmiddlebrook@nvidia.com>
Wed, 9 Dec 2020 23:17:26 +0000 (15:17 -0800)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 10 Dec 2020 15:28:08 +0000 (10:28 -0500)
commit8cfd31bcf30f316ec6af6eacf2d8fce3783ef146
tree94d75ccb74b218049ce0e42c94817f1aeef12ef2
parent65dec91d18d4395ae46eac12055a24c339a9b79a
Fix build for Unices without CLOCK_MONOTONIC_RAW

CLOCK_MONOTONIC_RAW was introduced in Linux 2.6.28 and glibc 2.12. In
order to build the CTS on non-Linux Unices or older Linux distros we
should only compile-in usage of CLOCK_MONOTONIC_RAW when it is available
at build-time.

Components: Vulkan

VK-GL-CTS issue: 2696

Affects:
dEQP-VK.pipeline.timestamp.calibrated.host_domain_test

Change-Id: I937d4ea6350fe0b70c0028d9ae48b9234e425fdf
external/vulkancts/modules/vulkan/pipeline/vktPipelineTimestampTests.cpp