i965: perf: minimize the chances to spread queries across batchbuffers
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 22 Jun 2017 01:15:50 +0000 (02:15 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 27 Jun 2017 11:10:25 +0000 (14:10 +0300)
commitadafe4b733c0242720ccfe10d391e5d44c0e7401
treeef9d9da01ffbc58a637842c73fdea58290c7dd16
parent7ee409dd4ee57c53d0ca4ddfcd853460db0b2ac4
i965: perf: minimize the chances to spread queries across batchbuffers

Counter related to timings will be sensitive to any delay introduced
by the software. In particular if our begin & end of performance
queries end up in different batches, time related counters will
exhibit biffer values caused by the time it takes for the kernel
driver to load new requests into the hardware.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_performance_query.c