Switch default CPU cache flush to disabled in direct submission

Change-Id: I1a5e5f67d3e6af129aeb611f203c243d892321bb
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2020-10-06 14:14:36 +02:00
committed by sys_ocldev
parent 28ef5fa709
commit 820efffdd0
2 changed files with 3 additions and 3 deletions

View File

@ -142,7 +142,7 @@ class DirectSubmissionHw {
uint32_t workloadModeOneExpectedValue = 0u; uint32_t workloadModeOneExpectedValue = 0u;
bool ringStart = false; bool ringStart = false;
bool disableCpuCacheFlush = false; bool disableCpuCacheFlush = true;
bool disableCacheFlush = false; bool disableCacheFlush = false;
bool disableMonitorFence = false; bool disableMonitorFence = false;
}; };

View File

@ -61,7 +61,7 @@ HWTEST_F(DirectSubmissionTest, whenDebugCacheFlushDisabledNotSetThenExpectCpuCac
HWTEST_F(DirectSubmissionTest, givenDirectSubmissionInitializedWhenRingIsStartedThenExpectAllocationsCreatedAndCommandsDispatched) { HWTEST_F(DirectSubmissionTest, givenDirectSubmissionInitializedWhenRingIsStartedThenExpectAllocationsCreatedAndCommandsDispatched) {
MockDirectSubmissionHw<FamilyType, RenderDispatcher<FamilyType>> directSubmission(*pDevice, MockDirectSubmissionHw<FamilyType, RenderDispatcher<FamilyType>> directSubmission(*pDevice,
*osContext.get()); *osContext.get());
EXPECT_FALSE(directSubmission.disableCpuCacheFlush); EXPECT_TRUE(directSubmission.disableCpuCacheFlush);
bool ret = directSubmission.initialize(true); bool ret = directSubmission.initialize(true);
EXPECT_TRUE(ret); EXPECT_TRUE(ret);
@ -123,7 +123,7 @@ HWTEST_F(DirectSubmissionTest, givenDirectSubmissionSwitchBuffersWhenCurrentIsSe
HWTEST_F(DirectSubmissionTest, givenDirectSubmissionAllocateFailWhenRingIsStartedThenExpectRingNotStarted) { HWTEST_F(DirectSubmissionTest, givenDirectSubmissionAllocateFailWhenRingIsStartedThenExpectRingNotStarted) {
MockDirectSubmissionHw<FamilyType, RenderDispatcher<FamilyType>> directSubmission(*pDevice, MockDirectSubmissionHw<FamilyType, RenderDispatcher<FamilyType>> directSubmission(*pDevice,
*osContext.get()); *osContext.get());
EXPECT_FALSE(directSubmission.disableCpuCacheFlush); EXPECT_TRUE(directSubmission.disableCpuCacheFlush);
directSubmission.allocateOsResourcesReturn = false; directSubmission.allocateOsResourcesReturn = false;
bool ret = directSubmission.initialize(true); bool ret = directSubmission.initialize(true);