diff --git a/unit_tests/kernel/kernel_tests.cpp b/unit_tests/kernel/kernel_tests.cpp index 29a0a66886134..92c28351fce73 100644 --- a/unit_tests/kernel/kernel_tests.cpp +++ b/unit_tests/kernel/kernel_tests.cpp @@ -1586,6 +1586,7 @@ HWTEST_F(KernelResidencyTest, test_MakeArgsResidentCheckImageFromImage) { cl_int retVal; MockContext context; std::unique_ptr imageNV12(Image::create(&context, flags, surfaceFormat, &imageDesc, nullptr, retVal)); + EXPECT_EQ(imageNV12->getMediaPlaneType(), 0u); //create Y plane imageFormat.image_channel_order = CL_R; @@ -1598,6 +1599,8 @@ HWTEST_F(KernelResidencyTest, test_MakeArgsResidentCheckImageFromImage) { imageDesc.mem_object = imageNV12.get(); std::unique_ptr imageY(Image::create(&context, flags, surfaceFormat, &imageDesc, nullptr, retVal)); + EXPECT_EQ(imageY->getMediaPlaneType(), 0u); + std::unique_ptr pKernelInfo(KernelInfo::create()); KernelArgInfo kernelArgInfo; kernelArgInfo.isImage = true;