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:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user