@@ -275,6 +275,61 @@ TEST_P(TestDPCTLSyclDeviceInterface, Chk_GetPreferredVectorWidthHalf)
275275 }
276276}
277277
278+ TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetImage2dMaxWidth)
279+ {
280+ size_t image_2d_max_width = 0 ;
281+ EXPECT_NO_FATAL_FAILURE (image_2d_max_width =
282+ DPCTLDevice_GetImage2dMaxWidth (DRef));
283+ size_t min_val = 8192 ;
284+ if (DPCTLDevice_HasAspect (DRef, DPCTL_SyclAspectToDPCTLAspectType (
285+ DPCTL_StrToAspectType (" image" ))))
286+ EXPECT_TRUE (image_2d_max_width >= min_val);
287+ }
288+
289+ TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetImage2dMaxHeight)
290+ {
291+ size_t image_2d_max_height = 0 ;
292+ EXPECT_NO_FATAL_FAILURE (image_2d_max_height =
293+ DPCTLDevice_GetImage2dMaxHeight (DRef));
294+ size_t min_val = 8192 ;
295+ if (DPCTLDevice_HasAspect (DRef, DPCTL_SyclAspectToDPCTLAspectType (
296+ DPCTL_StrToAspectType (" image" ))))
297+ EXPECT_TRUE (image_2d_max_height >= min_val);
298+ }
299+
300+ TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetImage3dMaxWidth)
301+ {
302+ size_t image_3d_max_width = 0 ;
303+ EXPECT_NO_FATAL_FAILURE (image_3d_max_width =
304+ DPCTLDevice_GetImage3dMaxWidth (DRef));
305+ size_t min_val = 2048 ;
306+ if (DPCTLDevice_HasAspect (DRef, DPCTL_SyclAspectToDPCTLAspectType (
307+ DPCTL_StrToAspectType (" image" ))))
308+ EXPECT_TRUE (image_3d_max_width >= min_val);
309+ }
310+
311+ TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetImage3dMaxHeight)
312+ {
313+ size_t image_3d_max_height = 0 ;
314+ EXPECT_NO_FATAL_FAILURE (image_3d_max_height =
315+ DPCTLDevice_GetImage3dMaxHeight (DRef));
316+ size_t min_val = 2048 ;
317+ if (DPCTLDevice_HasAspect (DRef, DPCTL_SyclAspectToDPCTLAspectType (
318+ DPCTL_StrToAspectType (" image" ))))
319+ EXPECT_TRUE (image_3d_max_height >= min_val);
320+ }
321+
322+ TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetImage3dMaxDepth)
323+ {
324+ size_t image_3d_max_depth = 0 ;
325+ EXPECT_NO_FATAL_FAILURE (image_3d_max_depth =
326+ DPCTLDevice_GetImage3dMaxDepth (DRef));
327+ size_t min_val = 2048 ;
328+ if (DPCTLDevice_HasAspect (DRef, DPCTL_SyclAspectToDPCTLAspectType (
329+ DPCTL_StrToAspectType (" image" ))))
330+ EXPECT_TRUE (image_3d_max_depth >= min_val);
331+ }
332+
278333INSTANTIATE_TEST_SUITE_P (DPCTLDevice_Fns,
279334 TestDPCTLSyclDeviceInterface,
280335 ::testing::Values (" opencl" ,
0 commit comments