diff options
Diffstat (limited to 'src/freedreno/ds/fd_pps_driver.h')
-rw-r--r-- | src/freedreno/ds/fd_pps_driver.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/freedreno/ds/fd_pps_driver.h b/src/freedreno/ds/fd_pps_driver.h index 8a738e26dbd..2c1c686dde0 100644 --- a/src/freedreno/ds/fd_pps_driver.h +++ b/src/freedreno/ds/fd_pps_driver.h @@ -20,6 +20,7 @@ namespace pps class FreedrenoDriver : public Driver { public: + bool is_dump_perfcnt_preemptible() const override; uint64_t get_min_sampling_period_ns() override; bool init_perfcnt() override; void enable_counter(uint32_t counter_id) override; @@ -28,6 +29,10 @@ public: void disable_perfcnt() override; bool dump_perfcnt() override; uint64_t next() override; + uint32_t gpu_clock_id() const override; + uint64_t gpu_timestamp() const override; + bool cpu_gpu_timestamp(uint64_t &cpu_timestamp, + uint64_t &gpu_timestamp) const override; private: struct fd_device *dev; @@ -56,7 +61,7 @@ private: * The number of counters assigned per perfcntr group, the index * into this matches the index into perfcntrs */ - std::vector<int> assigned_counters; + std::vector<unsigned> assigned_counters; /* * Values that can be used by derived counters evaluation @@ -101,9 +106,9 @@ private: operator int64_t() const { return get_value(); }; - void configure(struct fd_ringbuffer *ring, bool reset); - void collect(); - void resolve(); + void configure(struct fd_ringbuffer *ring, bool reset) const; + void collect() const; + void resolve() const; private: |