mesa/src
Lionel Landwerlin 9f439ae120 i965: perf: flush batchbuffers at the beginning of queries
As Chris commented, it makes more sense to have batch buffer flushes
before the query. Usually applications like frame_retrace do a series
of queries and in that case, with flushes at the end of the queries,
we might still have the first query contained in 2 different batchs.
More generally it would be quite usual to have the query contained in
2 batch buffers because we never now what's the fill rate of the
current batch buffer.

If we move the flushing at the beginning of the queries, it's pretty
much guaranteed that queries will be contained in a single batch
buffer (unless the amount of commands is huge, but then it's only fair
to include reloading request times in the measurements).

Fixes: adafe4b733 ("i965: perf: minimize the chances to spread queries across batchbuffers")
Reported-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: "17.2 17.1" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2017-07-25 18:56:33 +01:00
..
amd radv: only report external semaphore info for opaque fd. 2017-07-25 15:38:56 +10:00
broadcom broadcom: correct header file in BROADCOM_FILES 2017-07-24 01:40:05 +03:00
compiler glsl: rework misleading block layout code 2017-07-23 10:06:01 +10:00
egl egl: fix whitespace issues from eglimage code 2017-07-25 12:54:33 +03:00
gallium st/dri2: Return invalid modifier when no driver support 2017-07-25 18:40:07 +01:00
gbm gbm: fix typo 2017-07-19 15:51:54 +01:00
getopt
glx
gtest
hgl
intel intel/blorp: ship blorp_genX_exec.h within the tarball 2017-07-24 15:14:21 +01:00
loader loader/dri3: Use dri3_find_back in loader_dri3_swap_buffers_msc 2017-07-13 16:49:28 +09:00
mapi mapi: add missing no_error tag to glBlitNamedFramebuffer() 2017-07-18 10:07:34 +02:00
mesa i965: perf: flush batchbuffers at the beginning of queries 2017-07-25 18:56:33 +01:00
util util: fix warning/error on 32bit build 2017-07-25 12:54:33 +03:00
vulkan vulkan/util: fix typo in comment 2017-07-18 13:56:04 +01:00
Makefile.am build systems: move git_sha1_gen.sh to bin/ 2017-07-06 22:59:39 +01:00
SConscript build systems: move git_sha1_gen.sh to bin/ 2017-07-06 22:59:39 +01:00