radv: report timestampPeriod correctly
authorGrazvydas Ignotas <notasas@gmail.com>
Fri, 14 Apr 2017 17:00:26 +0000 (20:00 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 14 Apr 2017 20:15:55 +0000 (23:15 +0300)
commit1b2fe7ce45a508fa080e6bf93b820e6217beed83
treed18f684f621fd63dbffcc8b1ef678128a91b5178
parent9fc3e7137ac5566afd3f287ea67c0cdf3c3bfe97
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 <notasas@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_radeon_winsys.h