intel: provide a callback to clean up after intel_measure_gather
authorMark Janes <markjanes@swizzler.org>
Mon, 16 May 2022 19:56:08 +0000 (12:56 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 16 Jun 2022 02:58:08 +0000 (02:58 +0000)
commita1a5f6430a06a5b3fb774a70ea257f78f2cf00c9
tree2b1fb0b1286f7c6e49cec36b2abbf0bbbff4d7e7
parent34a130fedf0abe1596891e85df48fb2b208385ed
intel: provide a callback to clean up after intel_measure_gather

The caller may have passed ownership of intel_measure_batch structures
to intel_measure until they are ready to be gathered.  The caller
needs a notification when rendering is complete and snapshots have
been processed, so it can free the resources that measure the batch.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16571>
src/intel/common/intel_measure.c
src/intel/common/intel_measure.h