Do not call GEM_WAIT while direct submission active

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2021-02-16 15:25:26 +00:00
committed by Compute-Runtime-Automation
parent 0f78357e93
commit 9d3b759d29
3 changed files with 12 additions and 1 deletions

View File

@@ -71,6 +71,10 @@ bool BufferObject::close() {
}
int BufferObject::wait(int64_t timeoutNs) {
if (this->drm->isDirectSubmissionActive()) {
return 0;
}
drm_i915_gem_wait wait = {};
wait.bo_handle = this->handle;
wait.timeout_ns = -1;