Skip to content

Commit d0d5644

Browse files
test: EnqueueMapImageTest already checks image support
Related-to: NEO-12737 Signed-off-by: Damian Tomczak <[email protected]>
1 parent ba83701 commit d0d5644

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

opencl/test/unit_test/command_queue/enqueue_map_image_tests.cpp

-15
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,6 @@ TEST_F(EnqueueMapImageTest, GivenTiledImageWhenMappingImageThenPointerIsReused)
9393
}
9494

9595
HWTEST_F(EnqueueMapImageTest, givenAllocatedMapPtrAndMapWithDifferentOriginIsCalledThenReturnDifferentPointers) {
96-
if (!defaultHwInfo->capabilityTable.supportsImages) {
97-
GTEST_SKIP();
98-
}
9996
std::unique_ptr<Image> img(Image2dHelper<Image2dDefaults>::create(context));
10097
auto mapFlags = CL_MAP_READ;
10198
const size_t origin1[3] = {0, 0, 0};
@@ -196,9 +193,6 @@ struct MockedImage : public ImageHw<GfxFamily> {
196193
};
197194

198195
HWTEST_F(EnqueueMapImageTest, givenTiledImageWhenMapImageIsCalledThenStorageIsSetWithImageMutexTaken) {
199-
if (!defaultHwInfo->capabilityTable.supportsImages) {
200-
GTEST_SKIP();
201-
}
202196
auto imageFormat = image->getImageFormat();
203197
auto imageDesc = image->getImageDesc();
204198
auto graphicsAllocation = image->getGraphicsAllocation(pClDevice->getRootDeviceIndex());
@@ -315,9 +309,6 @@ TEST_F(EnqueueMapImageTest, GivenCmdqAndValidArgsWhenMappingImageThenSuccessIsRe
315309
}
316310

317311
HWTEST_F(EnqueueMapImageTest, givenNonReadOnlyMapWithOutEventWhenMappedThenSetEventAndIncraseTaskCountFromWriteImage) {
318-
if (!defaultHwInfo->capabilityTable.supportsImages) {
319-
GTEST_SKIP();
320-
}
321312
DebugManagerStateRestore dbgRestore;
322313
debugManager.flags.EnableAsyncEventsHandler.set(false);
323314
cl_event mapEventReturned = nullptr;
@@ -403,9 +394,6 @@ HWTEST_F(EnqueueMapImageTest, givenNonReadOnlyMapWithOutEventWhenMappedThenSetEv
403394
}
404395

405396
HWTEST_F(EnqueueMapImageTest, givenReadOnlyMapWithOutEventWhenMappedThenSetEventAndDontIncraseTaskCountFromWriteImage) {
406-
if (!defaultHwInfo->capabilityTable.supportsImages) {
407-
GTEST_SKIP();
408-
}
409397
DebugManagerStateRestore dbgRestore;
410398
debugManager.flags.EnableAsyncEventsHandler.set(false);
411399
cl_event mapEventReturned = nullptr;
@@ -448,9 +436,6 @@ HWTEST_F(EnqueueMapImageTest, givenReadOnlyMapWithOutEventWhenMappedThenSetEvent
448436
}
449437

450438
HWTEST_F(EnqueueMapImageTest, GivenPtrToReturnEventWhenMappingImageThenEventIsNotNull) {
451-
if (!defaultHwInfo->capabilityTable.supportsImages) {
452-
GTEST_SKIP();
453-
}
454439
cl_event eventReturned = nullptr;
455440
auto mapFlags = CL_MAP_READ;
456441
const size_t origin[3] = {0, 0, 0};

0 commit comments

Comments
 (0)