mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
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:

committed by
sys_ocldev

parent
28ef5fa709
commit
820efffdd0
@ -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;
|
||||||
};
|
};
|
||||||
|
@ -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);
|
||||||
|
Reference in New Issue
Block a user