Skip to content

Commit

Permalink
add test for getMediaPlaneType
Browse files Browse the repository at this point in the history
Change-Id: I96cd581360ebdae2dbda6c6940b056ae4899c2c0
  • Loading branch information
JacekDanecki authored and Compute-Runtime-Automation committed Mar 29, 2018
1 parent 211fbd9 commit 961d1e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions unit_tests/kernel/kernel_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1586,6 +1586,7 @@ HWTEST_F(KernelResidencyTest, test_MakeArgsResidentCheckImageFromImage) {
cl_int retVal;
MockContext context;
std::unique_ptr<OCLRT::Image> imageNV12(Image::create(&context, flags, surfaceFormat, &imageDesc, nullptr, retVal));
EXPECT_EQ(imageNV12->getMediaPlaneType(), 0u);

//create Y plane
imageFormat.image_channel_order = CL_R;
Expand All @@ -1598,6 +1599,8 @@ HWTEST_F(KernelResidencyTest, test_MakeArgsResidentCheckImageFromImage) {
imageDesc.mem_object = imageNV12.get();

std::unique_ptr<OCLRT::Image> imageY(Image::create(&context, flags, surfaceFormat, &imageDesc, nullptr, retVal));
EXPECT_EQ(imageY->getMediaPlaneType(), 0u);

std::unique_ptr<KernelInfo> pKernelInfo(KernelInfo::create());
KernelArgInfo kernelArgInfo;
kernelArgInfo.isImage = true;
Expand Down

0 comments on commit 961d1e2

Please sign in to comment.