SWDEV-544502 - Skip opengl tests on devices with no image support (#542)
Co-authored-by: Ioannis Assiouras <Ioannis.Assiouras@amd.com>
This commit is contained in:
committed by
GitHub
parent
e79eaaa8a5
commit
3cfdfe30b2
@@ -126,11 +126,6 @@ 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");
|
||||
@@ -214,6 +209,12 @@ class GLContextScopeGuard {
|
||||
static constexpr char kEnvarName[] = "GL_CONTEXT_TYPE";
|
||||
|
||||
GLContextScopeGuard() {
|
||||
|
||||
if(!HipTest::isImageSupported()) {
|
||||
HipTest::HIP_SKIP_TEST("Image is not supported on the device. Skipped.");
|
||||
exit(0);
|
||||
}
|
||||
|
||||
char* val = std::getenv(kEnvarName);
|
||||
std::string val_str = val == NULL ? "" : val;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user