i965: Fix timer query on gen6+
authorZou Nan hai <nanhai.zou@intel.com>
Wed, 20 Jul 2011 16:12:59 +0000 (00:12 +0800)
committerEric Anholt <eric@anholt.net>
Mon, 10 Oct 2011 18:38:52 +0000 (11:38 -0700)
commit7457da5edd4a33c2581f10608ce5bcf0e254c5f9
treea3ce074e09687cebae58f916c3735f28a8e71e60
parent9f0e98d1dfcf83a07a62e9c62e3dc77336789b4a
i965: Fix timer query on gen6+

PIPE_CONTROL reported time stamp are 64 bits value incrementing every
80 ns, and only the low 32 bits are active (high 32 are always 0).

v2: Cleaned up whitespace, function arguments (anholt).

Fixes piglit EXT_timer_query/time-elapsed

Signed-off-by: Zou Nan hai <nanhai.zou@intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_queryobj.c