From 0dbbf1e0708df85a357d70e2708c0a11aeb5480e Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Fri, 2 Sep 2022 05:47:02 +0000 Subject: Merge Mesa 22.1.7 --- lib/mesa/src/gallium/drivers/etnaviv/etnaviv_query_acc_perfmon.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/mesa/src/gallium/drivers/etnaviv/etnaviv_query_acc_perfmon.c') diff --git a/lib/mesa/src/gallium/drivers/etnaviv/etnaviv_query_acc_perfmon.c b/lib/mesa/src/gallium/drivers/etnaviv/etnaviv_query_acc_perfmon.c index 7c49fc88f..72fa77769 100644 --- a/lib/mesa/src/gallium/drivers/etnaviv/etnaviv_query_acc_perfmon.c +++ b/lib/mesa/src/gallium/drivers/etnaviv/etnaviv_query_acc_perfmon.c @@ -39,6 +39,7 @@ struct etna_pm_query struct etna_perfmon_signal *signal; unsigned sequence; + bool multiply_with_8; }; static inline struct etna_pm_query * @@ -116,6 +117,7 @@ perfmon_allocate(struct etna_context *ctx, unsigned query_type) return NULL; pm_add_signal(pq, ctx->screen->perfmon, cfg); + pq->multiply_with_8 = cfg->multiply_with_8; return &pq->base; } @@ -155,6 +157,9 @@ perfmon_result(struct etna_acc_query *aq, void *buf, result->u32 = sum; + if (pq->multiply_with_8) + result->u32 *= 8; + return true; } -- cgit v1.2.3