fix: detect gpu reset on windows direct submission

Related-To: NEO-8395

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz 2023-11-29 10:01:04 +00:00 committed by Compute-Runtime-Automation
parent cdcd834712
commit 4f9fe6bb53
2 changed files with 2 additions and 2 deletions

View File

@ -242,7 +242,7 @@ class DirectSubmissionHw {
bool completionFenceSupported = false;
bool isDisablePrefetcherRequired = false;
bool dcFlushRequired = false;
bool detectGpuHang = false;
bool detectGpuHang = true;
bool relaxedOrderingEnabled = false;
bool relaxedOrderingInitialized = false;
bool relaxedOrderingSchedulerRequired = false;

View File

@ -253,7 +253,7 @@ HWTEST_F(DirectSubmissionTest, givenDirectSubmissionInitializedWhenRingIsStarted
HWTEST_F(DirectSubmissionTest, givenDirectSubmissionInitializedWhenRingIsNotStartedThenExpectAllocationsCreatedAndCommandsNotDispatched) {
MockDirectSubmissionHw<FamilyType, RenderDispatcher<FamilyType>> directSubmission(*pDevice->getDefaultEngine().commandStreamReceiver);
EXPECT_FALSE(directSubmission.detectGpuHang);
EXPECT_TRUE(directSubmission.detectGpuHang);
bool ret = directSubmission.initialize(false, false);
EXPECT_TRUE(ret);