intel: allow reduced memory usage for INTEL_MEASURE
authorMark Janes <markjanes@swizzler.org>
Thu, 24 Aug 2023 00:24:34 +0000 (17:24 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 1 Sep 2023 18:50:24 +0000 (18:50 +0000)
commit0f291cb6c0b4b2a27392e396aa7eb48c0b5a4934
treee7036a47b6532b1c9d8d2cf470abe8600b3aa956
parentcda5784eb3dc890138229604ab68fa319626cc73
intel: allow reduced memory usage for INTEL_MEASURE

The default batch size was increased to support large numbers of
INTEL_MEASURE snapshots for complex workloads.  Some titles create
large numbers of small secondary command buffers, and quickly exhaust
memory.  An example of this is Dota2, where INTEL_MEASURE increases
the memory usage by a factor of 20.

Allow the user to specify smaller batch sizes and buffer sizes.

Reviewed-by: Felix DeGrood <felix.j.degrood@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24860>
src/intel/common/intel_measure.c