Add support for reduced GPU address space

Change-Id: I9ebbc8c51039bb533b44c6b80e717e1489a20a43
Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
This commit is contained in:
Pawel Wilma
2018-08-24 15:23:45 +02:00
committed by sys_ocldev
parent f6743ced2a
commit 4a12deea2b
44 changed files with 473 additions and 270 deletions

View File

@@ -388,7 +388,8 @@ HWTEST_F(EnqueueThreading, enqueueWriteBufferRect) {
size_t hostOrigin[3] = {1024u, 1, 0};
size_t region[3] = {1024u, 1, 1};
void *ptr = ::alignedMalloc(1024u, 4096);
auto hostPtrSize = Buffer::calculateHostPtrSize(hostOrigin, region, 0, 0);
void *ptr = ::alignedMalloc(hostPtrSize, MemoryConstants::pageSize);
ASSERT_NE(nullptr, ptr);
pCmdQ->enqueueWriteBufferRect(buffer.get(), CL_TRUE, bufferOrigin, hostOrigin, region, 0, 0, 0, 0, ptr, 0, nullptr, nullptr);