mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
fix: wrong return value of zeCommandQueueExecuteCommandLists when OOM
zeCommandQueueExecuteCommandLists return ZE_RESULT_ERROR_UNKNOWN when OOM in some scenario of direct submission. Related-To: NEO-7840 Signed-off-by: Pan Zhenjie <zhenjie.pan@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d77f2989c7
commit
1ce269a9dd
@@ -130,7 +130,7 @@ SubmissionStatus DrmCommandStreamReceiver<GfxFamily>::flush(BatchBuffer &batchBu
|
||||
this->startControllingDirectSubmissions();
|
||||
bool ret = this->directSubmission->dispatchCommandBuffer(batchBuffer, *this->flushStamp.get());
|
||||
if (ret == false) {
|
||||
return SubmissionStatus::FAILED;
|
||||
return Drm::getSubmissionStatusFromReturnCode(this->directSubmission->getDispatchErrorCode());
|
||||
}
|
||||
return SubmissionStatus::SUCCESS;
|
||||
}
|
||||
@@ -138,7 +138,7 @@ SubmissionStatus DrmCommandStreamReceiver<GfxFamily>::flush(BatchBuffer &batchBu
|
||||
this->startControllingDirectSubmissions();
|
||||
bool ret = this->blitterDirectSubmission->dispatchCommandBuffer(batchBuffer, *this->flushStamp.get());
|
||||
if (ret == false) {
|
||||
return SubmissionStatus::FAILED;
|
||||
return Drm::getSubmissionStatusFromReturnCode(this->blitterDirectSubmission->getDispatchErrorCode());
|
||||
}
|
||||
return SubmissionStatus::SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user