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

Change-Id: Ic7a86fa2cf9c1072ab3d08f4346764a3bef7d415


[ROCm/hip-tests commit: bc055cc2b7]
Этот коммит содержится в:
Ioannis Assiouras committed 2025-03-11 10:45:53 -04:00
1 родитель 53ddaca565
Коммит 9c088c00f4
1 file changed
+6
+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");