mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Fix ExecutionEnvironment test and rename hwInfoHelper to hardwareInfo
Change-Id: I849b9f5a9f449f063e5717ea9758e80c6662c5a5 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
4541b324a7
commit
de988d067c
@@ -1357,7 +1357,7 @@ TEST_F(KernelCommandsTest, givenCacheFlushAfterWalkerEnabledWhenPlatformNotSuppo
|
||||
DebugManagerStateRestore dbgRestore;
|
||||
DebugManager.flags.EnableCacheFlushAfterWalker.set(-1);
|
||||
DebugManager.flags.EnableCacheFlushAfterWalkerForAllQueues.set(1);
|
||||
hwInfoHelper.capabilityTable.supportCacheFlushAfterWalker = false;
|
||||
hardwareInfo.capabilityTable.supportCacheFlushAfterWalker = false;
|
||||
|
||||
StackVec<GraphicsAllocation *, 32> allocationsForCacheFlush;
|
||||
mockKernelWithInternal->mockKernel->getAllocationsForCacheFlush(allocationsForCacheFlush);
|
||||
@@ -1385,7 +1385,7 @@ HWTEST_F(KernelCacheFlushTests, givenLocallyUncachedBufferWhenGettingAllocations
|
||||
kernel->setArg(1, sizeof(bufferRegular), &bufferRegular);
|
||||
|
||||
kernel->getAllocationsForCacheFlush(cacheFlushVec);
|
||||
size_t expectedCacheFlushVecSize = (hwInfoHelper.capabilityTable.supportCacheFlushAfterWalker ? 1u : 0u);
|
||||
size_t expectedCacheFlushVecSize = (hardwareInfo.capabilityTable.supportCacheFlushAfterWalker ? 1u : 0u);
|
||||
EXPECT_EQ(expectedCacheFlushVecSize, cacheFlushVec.size());
|
||||
|
||||
clReleaseMemObject(bufferLocallyUncached);
|
||||
|
||||
Reference in New Issue
Block a user