mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:45:25 +08:00
Do not wait for completion in direct submission controller
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d69bf76282
commit
888c935efb
@@ -78,21 +78,17 @@ void DirectSubmissionController::checkNewSubmissions() {
|
||||
auto &state = directSubmission.second;
|
||||
|
||||
auto taskCount = csr->peekTaskCount();
|
||||
if (csr->testTaskCountReady(csr->getTagAddress(), taskCount)) {
|
||||
if (taskCount == state.taskCount) {
|
||||
if (state.isStopped) {
|
||||
continue;
|
||||
} else {
|
||||
auto lock = csr->obtainUniqueOwnership();
|
||||
csr->stopDirectSubmission();
|
||||
state.isStopped = true;
|
||||
}
|
||||
if (taskCount == state.taskCount) {
|
||||
if (state.isStopped) {
|
||||
continue;
|
||||
} else {
|
||||
state.isStopped = false;
|
||||
state.taskCount = taskCount;
|
||||
auto lock = csr->obtainUniqueOwnership();
|
||||
csr->stopDirectSubmission();
|
||||
state.isStopped = true;
|
||||
}
|
||||
} else {
|
||||
state.isStopped = false;
|
||||
state.taskCount = taskCount;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2019-2021 Intel Corporation
|
||||
* Copyright (C) 2019-2022 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -31,7 +31,7 @@ class DirectSubmissionController {
|
||||
|
||||
protected:
|
||||
struct DirectSubmissionState {
|
||||
bool isStopped = false;
|
||||
bool isStopped = true;
|
||||
uint32_t taskCount = 0u;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user