mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 09:30:13 +01:00
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 <rob.clark@oss.qualcomm.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38450>
This commit is contained in:
parent
f35867686d
commit
cb4a1134a9
1 changed files with 6 additions and 5 deletions
|
|
@ -7,6 +7,7 @@
|
||||||
#define __FREEDRENO_GPU_EVENT_H__
|
#define __FREEDRENO_GPU_EVENT_H__
|
||||||
|
|
||||||
#include "adreno_pm4.xml.h"
|
#include "adreno_pm4.xml.h"
|
||||||
|
#include "freedreno_common.h"
|
||||||
|
|
||||||
/* On terminology:
|
/* On terminology:
|
||||||
* - CLEAN events write dirty cache lines to memory.
|
* - CLEAN events write dirty cache lines to memory.
|
||||||
|
|
@ -59,11 +60,11 @@ struct fd_gpu_event_info {
|
||||||
bool needs_seqno;
|
bool needs_seqno;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <chip CHIP>
|
template <chip_range_support>
|
||||||
constexpr struct fd_gpu_event_info fd_gpu_events[FD_GPU_EVENT_MAX] = {};
|
constexpr struct fd_gpu_event_info fd_gpu_events[FD_GPU_EVENT_MAX] = {};
|
||||||
|
|
||||||
template <>
|
template <chip CHIP>
|
||||||
constexpr inline struct fd_gpu_event_info fd_gpu_events<A6XX>[FD_GPU_EVENT_MAX] = {
|
constexpr inline struct fd_gpu_event_info fd_gpu_events<chip_range(CHIP == A6XX)>[FD_GPU_EVENT_MAX] = {
|
||||||
{WRITE_PRIMITIVE_COUNTS, false}, /* FD_WRITE_PRIMITIVE_COUNTS */
|
{WRITE_PRIMITIVE_COUNTS, false}, /* FD_WRITE_PRIMITIVE_COUNTS */
|
||||||
{START_PRIMITIVE_CTRS, false}, /* FD_START_PRIMITIVE_CTRS */
|
{START_PRIMITIVE_CTRS, false}, /* FD_START_PRIMITIVE_CTRS */
|
||||||
{STOP_PRIMITIVE_CTRS, false}, /* FD_STOP_PRIMITIVE_CTRS */
|
{STOP_PRIMITIVE_CTRS, false}, /* FD_STOP_PRIMITIVE_CTRS */
|
||||||
|
|
@ -94,8 +95,8 @@ constexpr inline struct fd_gpu_event_info fd_gpu_events<A6XX>[FD_GPU_EVENT_MAX]
|
||||||
{DEBUG_LABEL, false}, /* FD_LABEL */
|
{DEBUG_LABEL, false}, /* FD_LABEL */
|
||||||
};
|
};
|
||||||
|
|
||||||
template <>
|
template <chip CHIP>
|
||||||
constexpr inline struct fd_gpu_event_info fd_gpu_events<A7XX>[FD_GPU_EVENT_MAX] = {
|
constexpr inline struct fd_gpu_event_info fd_gpu_events<chip_range(CHIP >= A7XX)>[FD_GPU_EVENT_MAX] = {
|
||||||
{WRITE_PRIMITIVE_COUNTS, false}, /* FD_WRITE_PRIMITIVE_COUNTS */
|
{WRITE_PRIMITIVE_COUNTS, false}, /* FD_WRITE_PRIMITIVE_COUNTS */
|
||||||
{START_PRIMITIVE_CTRS, false}, /* FD_START_PRIMITIVE_CTRS */
|
{START_PRIMITIVE_CTRS, false}, /* FD_START_PRIMITIVE_CTRS */
|
||||||
{STOP_PRIMITIVE_CTRS, false}, /* FD_STOP_PRIMITIVE_CTRS */
|
{STOP_PRIMITIVE_CTRS, false}, /* FD_STOP_PRIMITIVE_CTRS */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue