fix: Stop direct submission before signal GL event

Related-To: NEO-10556

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2024-07-11 12:13:19 +00:00
committed by Compute-Runtime-Automation
parent 759cc5538d
commit b0a5f2cced
3 changed files with 19 additions and 2 deletions

View File

@@ -194,6 +194,10 @@ class MockCommandStreamReceiver : public CommandStreamReceiver {
programStallingCommandsForBarrierCalled = true;
}
void stopDirectSubmission(bool blocking) override {
this->blockingStopDirectSubmissionCalled = blocking;
}
bool createPreemptionAllocation() override {
if (createPreemptionAllocationParentCall) {
return CommandStreamReceiver::createPreemptionAllocation();
@@ -256,6 +260,7 @@ class MockCommandStreamReceiver : public CommandStreamReceiver {
bool makeResidentParentCall = false;
bool programComputeBarrierCommandCalled = false;
bool programStallingCommandsForBarrierCalled = false;
bool blockingStopDirectSubmissionCalled = false;
std::optional<bool> isGpuHangDetectedReturnValue{};
std::optional<bool> testTaskCountReadyReturnValue{};
WaitStatus waitForCompletionWithTimeoutReturnValue{WaitStatus::ready};