From: Kristian Høgsberg Kristensen Date: Sat, 9 Jan 2016 08:50:04 +0000 (-0800) Subject: vk: Expose correct timestampPeriod for SKL X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dae800daa80c24022085cc691ca61e2dc1e6a600;p=mesa.git vk: Expose correct timestampPeriod for SKL Skylake uses 83.333ms per tick. --- 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 */,