diff options
author | Philipp Zabel <[email protected]> | 2016-10-06 01:48:04 +0200 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-10-06 02:02:35 -0700 |
commit | 0408d50f43d8520d9feb3faef6e6f31871d18a74 (patch) | |
tree | cada9e711c5632d4027f03c635c5cbbd0a843918 | |
parent | 88428fbe412e89c421da89808ef8bcc0fbddd845 (diff) |
anv: fix GetPhysicalDeviceProperties to return timestampPeriod in ns
According to chapters 16.5. (Timestamp Queries) and 30.2 (Limits) of the
Vulkan Specification 1.0.29, the .limits.timestampPeriod field returned
by vkGetPhysicalDeviceProperties is measured in nanoseconds, not in
seconds.
Signed-off-by: Philipp Zabel <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r-- | src/intel/vulkan/anv_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index f786ebe027a..c7b997904bf 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -572,7 +572,7 @@ void anv_GetPhysicalDeviceProperties( .storageImageSampleCounts = VK_SAMPLE_COUNT_1_BIT, .maxSampleMaskWords = 1, .timestampComputeAndGraphics = false, - .timestampPeriod = time_stamp_base / (1000 * 1000 * 1000), + .timestampPeriod = time_stamp_base, .maxClipDistances = 0 /* FIXME */, .maxCullDistances = 0 /* FIXME */, .maxCombinedClipAndCullDistances = 0 /* FIXME */, |