SWDEV-301667 - Separate scope from marker_ts_

Change-Id: I19f4d394e898bfb8c9d9a2c2edf9d5bf5def3b08
Dieser Commit ist enthalten in:
Saleel Kudchadker committed 2022-04-16 19:26:31 -04:00
1 Ursprung 5d9063147c
Commit b6cbfaf499
3 Dateien geändert
+20 -10

Keine Dateien entsprechen Ihrer Suche

+11 -3
Datei anzeigen
@@ -97,12 +97,14 @@ class Event : public RuntimeObject {
void* hw_event_; //!< HW event ID associated with SW event
Event* notify_event_; //!< Notify event, which should contain HW signal
const Device* device_; //!< Device, this event associated with
int32_t event_scope_; //!< 2 - system scope, 1 - device scope,
//!< 0 - ignore, -1 - invalid
protected:
static const EventWaitList nullWaitList;
struct ProfilingInfo {
ProfilingInfo(bool enabled = false) : enabled_(enabled), waves_(0), marker_ts_(0) {
ProfilingInfo(bool enabled = false) : enabled_(enabled), waves_(0), marker_ts_(false) {
if (enabled) {
clear();
callback_ = nullptr;
@@ -116,8 +118,8 @@ class Event : public RuntimeObject {
bool enabled_; //!< Profiling enabled for the wave limiter
uint32_t waves_; //!< The number of waves used in a dispatch
ProfilingCallback* callback_;
uint32_t marker_ts_; //!< Marker with release scope
//!< 5 - system scope, 3 - device scope, 1 - no scopes
bool marker_ts_; //!< TS marker
void clear() {
queued_ = 0ULL;
submitted_ = 0ULL;
@@ -224,6 +226,12 @@ class Event : public RuntimeObject {
//! Returns notify even associated with the current command
Event* NotifyEvent() const { return notify_event_; }
//! Get release scope of the event
int32_t getEventScope() const { return event_scope_; }
//! Set release scope for the event
void setEventScope(int32_t scope) { event_scope_ = scope; }
};
/*! \brief An operation that is submitted to a command queue.