SWDEV-470698 - fix formatting, add format check workflow (#657)

这个提交包含在:
Danylo Lytovchenko 编写, GitHub 于 2025-08-20 19:58:06 +05:30 提交
1 父节点 5840940caa
当前提交 f7338717ae
1574 个文件已更改
+162903 -199277

没有与搜索条件相匹配的文件

+11 -12
查看文件
@@ -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 {