mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
Add support for reduced GPU address space
Change-Id: I9ebbc8c51039bb533b44c6b80e717e1489a20a43 Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user