[Mesa-dev] [PATCH] anv/device: fix timestampPeriod for Broxton

Lionel Landwerlin lionel.g.landwerlin at intel.com
Fri Mar 17 14:58:04 UTC 2017


I thought I remembered patches with those numbers in gen_device_info 
somewhere...
Anyway :

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>

On 17/03/17 14:41, Robert Bragg wrote:
> Broxton's reference clock for timestamps runs at 19.2MHz and gives us
> a period of 52.083 nanoseconds.
>
> Signed-off-by: Robert Bragg <robert at sixbynine.org>
> ---
>   src/intel/vulkan/anv_device.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
> index 014b2f7d9c..d9eba859a1 100644
> --- a/src/intel/vulkan/anv_device.c
> +++ b/src/intel/vulkan/anv_device.c
> @@ -535,7 +535,8 @@ void anv_GetPhysicalDeviceProperties(
>      ANV_FROM_HANDLE(anv_physical_device, pdevice, physicalDevice);
>      const struct gen_device_info *devinfo = &pdevice->info;
>   
> -   const float time_stamp_base = devinfo->gen >= 9 ? 83.333 : 80.0;
> +   const float time_stamp_base = (devinfo->gen < 9 ? 80.0 :
> +                                  (devinfo->is_broxton ? 52.083 : 83.333));
>   
>      /* See assertions made when programming the buffer surface state. */
>      const uint32_t max_raw_buffer_sz = devinfo->gen >= 7 ?




More information about the mesa-dev mailing list