mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 23:33:20 +08:00
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:
committed by
sys_ocldev
parent
b86d8f060b
commit
8998f89886
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user