mesa/src/intel
Marcin Ślusarz 2fbab5a1b3 intel/perf: fix performance counters availability after glFinish
Currently Linux kernel gathers performance counters at fixed
intervals (~5-10ms), so if application uses AMD_performance_monitor
extension and immediately after glFinish() asks GL driver for HW
performance counter values it might not get any data (values == 0).

Fix this by moving the "read counters from kernel" code from
"is query ready" to "get counter values" callback with a loop around
it. Unfortunately it means that the "read counters from kernel"
code can spin for up to 10ms.

Ideally kernel should gather performance counters whenever we ask
it for counter values, but for now we have deal with what we have.

Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5788>
2020-08-10 13:41:29 +00:00
..
blorp nir: Use a single list for all shader variables 2020-07-29 17:38:58 +00:00
common intel/l3: Return the URB size from devinfo for DG1 2020-06-22 11:42:00 -07:00
compiler i965: Enable vector shrinking in the vec4 backend. 2020-08-03 21:26:45 +00:00
dev anv: track the current frame and write it into the driver identifier BO 2020-08-07 11:27:54 +00:00
genxml intel/genxml: replace gen_sort_tags.py MIT licence with SPDX equivalent 2020-06-13 01:16:17 +00:00
isl intel/isl: Update mocs for DG1 2020-06-22 11:42:00 -07:00
perf intel/perf: fix performance counters availability after glFinish 2020-08-10 13:41:29 +00:00
tools intel/dump_gpu: add an option to capture a single frame 2020-08-07 11:27:54 +00:00
vulkan anv: track the current frame and write it into the driver identifier BO 2020-08-07 11:27:54 +00:00
Android.blorp.mk
Android.common.mk
Android.compiler.mk
Android.dev.mk intel: add identifier for debug purposes 2020-05-20 15:58:22 +00:00
Android.genxml.mk
Android.isl.mk
Android.mk
Android.perf.mk
Android.vulkan.mk
Makefile.perf.am
Makefile.sources intel/compiler: fix Android build 2020-06-06 18:42:03 +00:00
meson.build