mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Change default value of flushL3cache to true.
Change-Id: Ibaf682fcbe54ebb97a01575b1891ccfe3f60fc4a Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
0666da693e
commit
094068807e
@ -244,7 +244,7 @@ class GraphicsAllocation : public IDNode<GraphicsAllocation> {
|
||||
AllocationInfo() {
|
||||
flags.coherent = false;
|
||||
flags.evictable = true;
|
||||
flags.flushL3Required = false;
|
||||
flags.flushL3Required = true;
|
||||
flags.is32BitAllocation = false;
|
||||
flags.multiOsContextCapable = false;
|
||||
}
|
||||
|
@ -1278,9 +1278,9 @@ HWCMDTEST_F(IGFX_GEN8_CORE, HardwareCommandsTest, givenCacheFlushAfterWalkerEnab
|
||||
|
||||
char buff[MemoryConstants::pageSize * 2];
|
||||
MockGraphicsAllocation svmAllocation1{alignUp(buff, MemoryConstants::pageSize), MemoryConstants::pageSize};
|
||||
svmAllocation1.setFlushL3Required(true);
|
||||
mockKernelWithInternal->mockKernel->kernelSvmGfxAllocations.push_back(&svmAllocation1);
|
||||
MockGraphicsAllocation svmAllocation2{alignUp(buff, MemoryConstants::pageSize), MemoryConstants::pageSize};
|
||||
svmAllocation2.setFlushL3Required(false);
|
||||
mockKernelWithInternal->mockKernel->kernelSvmGfxAllocations.push_back(&svmAllocation2);
|
||||
mockKernelWithInternal->mockKernel->svmAllocationsRequireCacheFlush = true;
|
||||
|
||||
|
Reference in New Issue
Block a user