SWDEV-516180 - Skip OpenGL tests on devices with no image support

Change-Id: Ic7a86fa2cf9c1072ab3d08f4346764a3bef7d415
이 커밋은 다음에 포함됨:
Ioannis Assiouras
2025-02-18 18:02:53 +00:00
부모 f581518103
커밋 bc055cc2b7
+6
파일 보기
@@ -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");