From dae800daa80c24022085cc691ca61e2dc1e6a600 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg=20Kristensen?= Date: Sat, 9 Jan 2016 00:50:04 -0800 Subject: [PATCH] vk: Expose correct timestampPeriod for SKL Skylake uses 83.333ms per tick. --- src/vulkan/anv_device.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c index 0bd040b13f2..57232298e3d 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -384,6 +384,8 @@ void anv_GetPhysicalDeviceProperties( anv_finishme("Get correct values for VkPhysicalDeviceLimits"); + const float time_stamp_base = devinfo->gen >= 9 ? 83.333 : 80.0; + VkSampleCountFlags sample_counts = VK_SAMPLE_COUNT_1_BIT | VK_SAMPLE_COUNT_2_BIT | @@ -490,7 +492,7 @@ void anv_GetPhysicalDeviceProperties( .sampledImageStencilSampleCounts = sample_counts, .storageImageSampleCounts = VK_SAMPLE_COUNT_1_BIT, .maxSampleMaskWords = 1, - .timestampPeriod = 80.0 / (1000 * 1000 * 1000), + .timestampPeriod = time_stamp_base / (1000 * 1000 * 1000), .maxClipDistances = 0 /* FIXME */, .maxCullDistances = 0 /* FIXME */, .maxCombinedClipAndCullDistances = 0 /* FIXME */, -- 2.30.2