diff --git a/catch/unit/gl_interop/gl_interop_common.hh b/catch/unit/gl_interop/gl_interop_common.hh index 969bbcbb1f..160a01f3d8 100644 --- a/catch/unit/gl_interop/gl_interop_common.hh +++ b/catch/unit/gl_interop/gl_interop_common.hh @@ -125,6 +125,12 @@ class GLUTContextScopeGuard { class EGLContextScopeGuard { public: EGLContextScopeGuard() { + + if(!HipTest::isImageSupported()) { + HipTest::HIP_SKIP_TEST("Image is not supported on the device. Skipped."); + exit(1); + } + // 1. Initialize EGL PFNEGLQUERYDEVICESEXTPROC eglQueryDevicesEXT = (PFNEGLQUERYDEVICESEXTPROC)eglGetProcAddress("eglQueryDevicesEXT");