broadcom/compiler: track number of TMU operations in prog data

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17854>
This commit is contained in:
Iago Toral Quiroga
2022-07-22 08:13:28 +02:00
committed by Marge Bot
parent aa018415b3
commit 87a9951073
3 changed files with 4 additions and 0 deletions

View File

@@ -324,6 +324,7 @@ ntq_add_pending_tmu_flush(struct v3d_compile *c,
c->tmu.flush[c->tmu.flush_count].dest = dest;
c->tmu.flush[c->tmu.flush_count].component_mask = component_mask;
c->tmu.flush_count++;
c->tmu.total_count++;
if (c->disable_tmu_pipelining)
ntq_flush_tmu(c);

View File

@@ -645,6 +645,7 @@ struct v3d_compile {
uint8_t component_mask;
} flush[MAX_TMU_QUEUE_SIZE];
uint32_t flush_count;
uint32_t total_count;
} tmu;
/**
@@ -919,6 +920,7 @@ struct v3d_prog_data {
uint32_t spill_size;
uint32_t tmu_spills;
uint32_t tmu_fills;
uint32_t tmu_count;
uint32_t qpu_read_stalls;

View File

@@ -855,6 +855,7 @@ v3d_set_prog_data(struct v3d_compile *c,
prog_data->spill_size = c->spill_size;
prog_data->tmu_spills = c->spills;
prog_data->tmu_fills = c->fills;
prog_data->tmu_count = c->tmu.total_count;
prog_data->qpu_read_stalls = c->qpu_inst_stalled_count;
prog_data->compile_strategy_idx = c->compile_strategy_idx;
prog_data->tmu_dirty_rcl = c->tmu_dirty_rcl;