anv: fix reported timestampPeriod value
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sat, 1 Jul 2017 23:23:29 +0000 (00:23 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sun, 2 Jul 2017 11:11:55 +0000 (12:11 +0100)
commit038c45a40e4397c3219f1fc6e679473ed8c8beee
tree20ad64ebe73b7526d4e75ae08b35038c8863f63d
parent34560ba9e567c8bf1fbf20fc3d007bd007176224
anv: fix reported timestampPeriod value

We lost some precision on a previous change due to switching to
integers. Since we report a float in timestampPeriod, we want the
division to happen in floats.

CID: 1413021
Fixes: c77d98ef32 ("intel: common: express timestamps units in frequency")
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_device.c