SWDEV-470698 - fix formatting, add format check workflow (#657)
This commit is contained in:
1 parent
5840940caa
commit
f7338717ae
1574 files changed
+162903
-199277
No files matched your search
@@ -292,7 +292,10 @@ class HostQueue : public CommandQueue {
|
||||
}
|
||||
}
|
||||
//! Reset the command batch list
|
||||
void ResetSubmissionBatch() { head_ = nullptr; size_ = 0; }
|
||||
void ResetSubmissionBatch() {
|
||||
head_ = nullptr;
|
||||
size_ = 0;
|
||||
}
|
||||
|
||||
//! Set queue status
|
||||
void SetQueueStatus() { isActive_ = true; }
|
||||
@@ -303,27 +306,23 @@ class HostQueue : public CommandQueue {
|
||||
//! Set the force destory to terminate queue without checking last command
|
||||
void SetForceDestroy(bool forceDestroy) { forceDestroy_ = forceDestroy; }
|
||||
|
||||
uint64_t getQueueID() {
|
||||
return thread_.vdev()->getQueueID();
|
||||
}
|
||||
uint64_t getQueueID() { return thread_.vdev()->getQueueID(); }
|
||||
|
||||
//! Returns Synchronization Policy for the current stream
|
||||
amd::SyncPolicy GetSyncPolicy() const { return sync_policy_; }
|
||||
//! Set Synchronization Policy used by Queue
|
||||
void SetSyncPolicy(amd::SyncPolicy value) {
|
||||
sync_policy_ = value;
|
||||
}
|
||||
void SetSyncPolicy(amd::SyncPolicy value) { sync_policy_ = value; }
|
||||
|
||||
private:
|
||||
Command* head_; //!< Head of the batch list
|
||||
Command* tail_; //!< Tail of the batch list
|
||||
size_t size_ = 0; //!< The current batch size
|
||||
private:
|
||||
Command* head_; //!< Head of the batch list
|
||||
Command* tail_; //!< Tail of the batch list
|
||||
size_t size_ = 0; //!< The current batch size
|
||||
|
||||
//! True if this command queue is active
|
||||
bool isActive_;
|
||||
bool forceDestroy_ = false; //!< Destroy the queue in the current state
|
||||
|
||||
amd::SyncPolicy sync_policy_; //!< Used for controlling stream synchronization
|
||||
amd::SyncPolicy sync_policy_; //!< Used for controlling stream synchronization
|
||||
};
|
||||
|
||||
class DeviceQueue : public CommandQueue {
|
||||
|
||||
Reference in new issue
Block a user