From cb4a1134a985ba72f087790d858bd547816a73ea Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Sat, 23 Aug 2025 10:08:34 -0700 Subject: [PATCH] freedreno/event: Extend event helpers for gen8 There are some new events, but existing ones look the same. So I think, at least for now, we can keep the same table for gen7 and gen8. Signed-off-by: Rob Clark Part-of: --- src/freedreno/common/freedreno_gpu_event.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/freedreno/common/freedreno_gpu_event.h b/src/freedreno/common/freedreno_gpu_event.h index b668dbd5c81..2547e71b827 100644 --- a/src/freedreno/common/freedreno_gpu_event.h +++ b/src/freedreno/common/freedreno_gpu_event.h @@ -7,6 +7,7 @@ #define __FREEDRENO_GPU_EVENT_H__ #include "adreno_pm4.xml.h" +#include "freedreno_common.h" /* On terminology: * - CLEAN events write dirty cache lines to memory. @@ -59,11 +60,11 @@ struct fd_gpu_event_info { bool needs_seqno; }; -template +template constexpr struct fd_gpu_event_info fd_gpu_events[FD_GPU_EVENT_MAX] = {}; -template <> -constexpr inline struct fd_gpu_event_info fd_gpu_events[FD_GPU_EVENT_MAX] = { +template +constexpr inline struct fd_gpu_event_info fd_gpu_events[FD_GPU_EVENT_MAX] = { {WRITE_PRIMITIVE_COUNTS, false}, /* FD_WRITE_PRIMITIVE_COUNTS */ {START_PRIMITIVE_CTRS, false}, /* FD_START_PRIMITIVE_CTRS */ {STOP_PRIMITIVE_CTRS, false}, /* FD_STOP_PRIMITIVE_CTRS */ @@ -94,8 +95,8 @@ constexpr inline struct fd_gpu_event_info fd_gpu_events[FD_GPU_EVENT_MAX] {DEBUG_LABEL, false}, /* FD_LABEL */ }; -template <> -constexpr inline struct fd_gpu_event_info fd_gpu_events[FD_GPU_EVENT_MAX] = { +template +constexpr inline struct fd_gpu_event_info fd_gpu_events= A7XX)>[FD_GPU_EVENT_MAX] = { {WRITE_PRIMITIVE_COUNTS, false}, /* FD_WRITE_PRIMITIVE_COUNTS */ {START_PRIMITIVE_CTRS, false}, /* FD_START_PRIMITIVE_CTRS */ {STOP_PRIMITIVE_CTRS, false}, /* FD_STOP_PRIMITIVE_CTRS */