diff options
author | Grazvydas Ignotas <[email protected]> | 2017-04-14 20:00:26 +0300 |
---|---|---|
committer | Grazvydas Ignotas <[email protected]> | 2017-04-14 23:15:55 +0300 |
commit | 1b2fe7ce45a508fa080e6bf93b820e6217beed83 (patch) | |
tree | d18f684f621fd63dbffcc8b1ef678128a91b5178 /src/amd/vulkan/radv_device.c | |
parent | 9fc3e7137ac5566afd3f287ea67c0cdf3c3bfe97 (diff) |
radv: report timestampPeriod correctly
The kernel returns frequency in kHz, so to convert to nanosecond
interval that Vulkan uses the dividend should be 1000000.0 and not
100000.0.
This fixes the GPU graph in DOOM and matches the amdgpu-pro blob.
Fixes: f4e499ec791 "radv: add initial non-conformant radv vulkan driver"
Signed-off-by: Grazvydas Ignotas <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_device.c')
-rw-r--r-- | src/amd/vulkan/radv_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 8783ad4e1ba..62514983649 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -653,7 +653,7 @@ void radv_GetPhysicalDeviceProperties( .storageImageSampleCounts = VK_SAMPLE_COUNT_1_BIT, .maxSampleMaskWords = 1, .timestampComputeAndGraphics = false, - .timestampPeriod = 100000.0 / pdevice->rad_info.clock_crystal_freq, + .timestampPeriod = 1000000.0 / pdevice->rad_info.clock_crystal_freq, .maxClipDistances = 8, .maxCullDistances = 8, .maxCombinedClipAndCullDistances = 8, |