From bc055cc2b7ee1b7a4759a5e1d4298282bc0d8cca Mon Sep 17 00:00:00 2001 From: Ioannis Assiouras Date: Tue, 18 Feb 2025 18:02:53 +0000 Subject: [PATCH] SWDEV-516180 - Skip OpenGL tests on devices with no image support Change-Id: Ic7a86fa2cf9c1072ab3d08f4346764a3bef7d415 --- catch/unit/gl_interop/gl_interop_common.hh | 6 ++++++ 1 file changed, 6 insertions(+) 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");