HostPtr allocation with life time of image object for CL_MEM_USE_HOST_PTR

Related-To: NEO-3231

Change-Id: I4869e55b3c4b5217c83cc0b53d8c9f8c14b524b2
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
This commit is contained in:
Milczarek, Slawomir
2019-06-06 23:21:08 +02:00
committed by sys_ocldev
parent b86d8f060b
commit 8998f89886
5 changed files with 65 additions and 47 deletions

View File

@@ -60,7 +60,7 @@ TEST_F(EnqueueMapImageTest, reuseMappedPtrForTiledImg) {
const size_t region[3] = {1, 1, 1};
auto mapAllocation = image->getMapAllocation();
EXPECT_EQ(nullptr, mapAllocation);
EXPECT_NE(nullptr, mapAllocation);
auto ptr1 = pCmdQ->enqueueMapImage(
image, true, mapFlags, origin,
@@ -69,7 +69,7 @@ TEST_F(EnqueueMapImageTest, reuseMappedPtrForTiledImg) {
EXPECT_EQ(CL_SUCCESS, retVal);
EXPECT_NE(nullptr, image->getHostPtr());
mapAllocation = image->getMapAllocation();
EXPECT_EQ(nullptr, mapAllocation);
EXPECT_NE(nullptr, mapAllocation);
auto ptr2 = pCmdQ->enqueueMapImage(
image, true, mapFlags, origin,