anv: re-enable RT data in INTEL_MEASURE

Per-RenderTarget analysis was removed from anv's INTEL_MEASURE
previously, probably after switching to dynamic rendering model.
Restore capability by tracking count of beginRenderPass calls.

Reviewed-by: Mark Janes <markjanes@swizzler.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22723>
This commit is contained in:
Felix DeGrood
2023-04-26 18:26:06 +00:00
committed by Marge Bot
parent f783f581a8
commit e2dfab5c96
3 changed files with 10 additions and 22 deletions
+1
View File
@@ -225,6 +225,7 @@ intel_measure_init(struct intel_measure_device *device)
device->config = NULL;
device->frame = 0;
device->render_pass_count = 0;
device->release_batch = NULL;
pthread_mutex_init(&device->mutex, NULL);
list_inithead(&device->queued_snapshots);
+1
View File
@@ -134,6 +134,7 @@ typedef void (*intel_measure_release_batch_cb)(struct intel_measure_batch *base)
struct intel_measure_device {
struct intel_measure_config *config;
unsigned frame;
unsigned render_pass_count;
intel_measure_release_batch_cb release_batch;
/* Holds the list of (iris/anv)_measure_batch snapshots that have been