mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Revert "refactor: split CpuInaccessible MemoryPool types to Device and System"
This reverts commit 2e8cf5fdf5.
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
c68f7c8fe2
commit
af7bcbf99c
@@ -706,7 +706,7 @@ TEST_P(CreateImageHostPtr, WhenImageIsCreatedThenResidencyIsFalse) {
|
||||
|
||||
TEST_P(CreateImageHostPtr, WhenCheckingAddressThenAlllocationDependsOnSizeRelativeToPage) {
|
||||
image = createImage(retVal);
|
||||
|
||||
auto allocation = image->getGraphicsAllocation(context->getDevice(0)->getRootDeviceIndex());
|
||||
ASSERT_NE(nullptr, image);
|
||||
|
||||
auto address = image->getBasePtrForMap(0);
|
||||
@@ -740,6 +740,11 @@ TEST_P(CreateImageHostPtr, WhenCheckingAddressThenAlllocationDependsOnSizeRelati
|
||||
} else {
|
||||
EXPECT_NE(pHostPtr, address);
|
||||
}
|
||||
|
||||
if (flags & CL_MEM_COPY_HOST_PTR && image->isMemObjZeroCopy()) {
|
||||
// Buffer should contain a copy of host memory
|
||||
EXPECT_EQ(0, memcmp(pHostPtr, allocation->getUnderlyingBuffer(), sizeof(testImageDimensions)));
|
||||
}
|
||||
}
|
||||
|
||||
TEST_P(CreateImageHostPtr, WhenGettingImageDescThenCorrectValuesAreReturned) {
|
||||
@@ -1345,9 +1350,6 @@ TEST(ImageTest, givenMipMapImage2DArrayWhenAskedForPtrOffsetForGpuMappingThenRet
|
||||
}
|
||||
|
||||
TEST(ImageTest, givenNonMipMapImage2DArrayWhenAskedForPtrOffsetForGpuMappingThenReturnOffsetWithSlicePitch) {
|
||||
DebugManagerStateRestore dbgRestore;
|
||||
DebugManager.flags.EnableLocalMemory.set(1);
|
||||
|
||||
MockContext ctx;
|
||||
cl_image_desc imageDesc{};
|
||||
imageDesc.image_type = CL_MEM_OBJECT_IMAGE2D_ARRAY;
|
||||
|
||||
Reference in New Issue
Block a user