mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
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 <philipp.zabel@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
88428fbe41
commit
0408d50f43
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue