intel/perf: repurpose INTEL_DEBUG=no-oaconfig
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 6 Apr 2020 07:42:22 +0000 (10:42 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 20 May 2020 11:02:27 +0000 (14:02 +0300)
commitd0e11231a4fa7c7c4da2b4f9aed47a6000687f18
treea28c6b9329009a52fbf1b1cf6d75beebeef6b5ca
parent2001a80d4a81f2e8194b29cca301dd1b27be9acb
intel/perf: repurpose INTEL_DEBUG=no-oaconfig

We initially used this debug option to mean "don't bother registering
the OA configuration into the kernel".

This change makes this option suppress any interaction with the
i915/perf interface. This is useful when debugging self modifying
batches with performance queries while running on the intel_mi_runner.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2775>
src/intel/perf/gen_perf.c
src/intel/vulkan/anv_batch_chain.c
src/intel/vulkan/anv_perf.c