Allow cpu buffers copy on DG2 in 32bit

Resolves: NEO-6906, NEO-6000

Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
Maciej Plewka
2022-06-06 11:41:12 +00:00
committed by Compute-Runtime-Automation
parent fcd5930f10
commit 2055daf696
9 changed files with 109 additions and 2 deletions

View File

@@ -68,7 +68,9 @@ TEST(Buffer, whenBufferAllocatedInLocalMemoryThenCpuCopyIsDisallowed) {
MockBuffer buffer(allocation);
UltDeviceFactory factory{1, 0};
auto &device = *factory.rootDevices[0];
auto gmm = std::make_unique<MockGmm>(device.getGmmHelper());
allocation.setGmm(gmm.get(), 0);
allocation.getDefaultGmm()->resourceParams.Flags.Info.NotLockable = 1;
allocation.memoryPool = MemoryPool::LocalMemory;
EXPECT_FALSE(buffer.isReadWriteOnCpuAllowed(device));