diff options
author | Rob Clark <[email protected]> | 2019-11-19 11:43:40 -0800 |
---|---|---|
committer | Rob Clark <[email protected]> | 2019-11-21 20:01:03 +0000 |
commit | e35c4e6ad2319222d92a62f481cd0b773818d1bf (patch) | |
tree | 4e9c4661f01f72f3e9e6f1e22b6993a092879233 /src/gallium/drivers/freedreno/freedreno_screen.c | |
parent | b21f03ae7eae95ff99b111ba5907f09bfcfebbc8 (diff) |
freedreno/perfcntrs: add accessor to get per-gen tables
Signed-off-by: Rob Clark <[email protected]>
Reviewed-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_screen.c')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_screen.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c index 45454e8c066..c6b2d2447fd 100644 --- a/src/gallium/drivers/freedreno/freedreno_screen.c +++ b/src/gallium/drivers/freedreno/freedreno_screen.c @@ -941,6 +941,11 @@ fd_screen_create(struct fd_device *dev, struct renderonly *ro) screen->num_vsc_pipes = 8; } + if (fd_mesa_debug & FD_DBG_PERFC) { + screen->perfcntr_groups = fd_perfcntrs(screen->gpu_id, + &screen->num_perfcntr_groups); + } + /* NOTE: don't enable if we have too old of a kernel to support * growable cmdstream buffers, since memory requirement for cmdstream * buffers would be too much otherwise. |