mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 14:02:58 +08:00
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:
committed by
Compute-Runtime-Automation
parent
fcd5930f10
commit
2055daf696
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user