i965: read CS timestamp frequency from the kernel on Gen10+
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 6 Nov 2017 11:11:42 +0000 (11:11 +0000)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 4 Dec 2017 18:05:20 +0000 (18:05 +0000)
commitb66e4b51bfc82621e590e6be8972a30958c0a08a
tree7db4178319becf2f46fcb63ec172ca0d435323d2
parentaa8a2a867056a93467623efbca950b51e592e67d
i965: read CS timestamp frequency from the kernel on Gen10+

We cannot figure this value out of the PCI-id anymore. Let's read it
from the kernel (which computes this from a few registers).

When running on a (upcoming) 4.16-rc1+ kernel, this will fixes piglit
tests on CNL :

    spec@arb_timer_query@query gl_timestamp
    spec@arb_timer_query@timestamp-get
    spec@ext_timer_query@time-elapsed

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
src/mesa/drivers/dri/i965/intel_screen.c