return de::contains(extensions.begin(), extensions.end(), str);
}
-vector<string> getPlatformExtensions (const Library& egl)
+vector<string> getClientExtensions (const Library& egl)
{
return getExtensions(egl, EGL_NO_DISPLAY);
}
-vector<string> getClientExtensions (const Library& egl, EGLDisplay display)
+vector<string> getDisplayExtensions (const Library& egl, EGLDisplay display)
{
DE_ASSERT(display != EGL_NO_DISPLAY);
if (supportsPlatformGetDisplay)
{
- const vector<string> platformExts = getPlatformExtensions(egl);
+ const vector<string> platformExts = getClientExtensions(egl);
usePlatformExt = de::contains(platformExts.begin(), platformExts.end(), string("EGL_EXT_platform_base")) &&
de::contains(platformExts.begin(), platformExts.end(), string(nativeDisplay.getPlatformExtensionName()));
}
if (supportsPlatformCreate)
{
- const vector<string> platformExts = getPlatformExtensions(egl);
+ const vector<string> platformExts = getClientExtensions(egl);
usePlatformExt = de::contains(platformExts.begin(), platformExts.end(), string("EGL_EXT_platform_base")) &&
de::contains(platformExts.begin(), platformExts.end(), string(nativeDisplay.getPlatformExtensionName()));
}
if (supportsPlatformCreate)
{
- const vector<string> platformExts = getPlatformExtensions(egl);
+ const vector<string> platformExts = getClientExtensions(egl);
usePlatformExt = de::contains(platformExts.begin(), platformExts.end(), string("EGL_EXT_platform_base")) &&
de::contains(platformExts.begin(), platformExts.end(), string(nativeDisplay.getPlatformExtensionName()));
}
Version getVersion (const eglw::Library& egl, eglw::EGLDisplay display);
-std::vector<std::string> getPlatformExtensions (const eglw::Library& egl);
-std::vector<std::string> getClientExtensions (const eglw::Library& egl, eglw::EGLDisplay display);
+std::vector<std::string> getClientExtensions (const eglw::Library& egl);
+std::vector<std::string> getDisplayExtensions (const eglw::Library& egl, eglw::EGLDisplay display);
bool hasExtension (const eglw::Library& egl, eglw::EGLDisplay display, const std::string& extName);
std::vector<eglw::EGLConfig> getConfigs (const eglw::Library& egl, eglw::EGLDisplay display);
{
bool isOk = true;
set<string> requiredExtensions;
- vector<string> extensions = eglu::getClientExtensions(m_eglTestCtx.getLibrary(), m_display);
+ vector<string> extensions = eglu::getDisplayExtensions(m_eglTestCtx.getLibrary(), m_display);
{
const EGLint* iter = &(m_attribList[0]);
void checkEGLPlatformSupport (const Library& egl, const char* platformExt)
{
- std::vector<std::string> extensions = eglu::getPlatformExtensions(egl);
+ std::vector<std::string> extensions = eglu::getClientExtensions(egl);
if (!de::contains(extensions.begin(), extensions.end(), platformExt))
throw tcu::NotSupportedError((std::string("Platform extension '") + platformExt + "' not supported").c_str(), "", __FILE__, __LINE__);
|| m_config.textureType == TestConfig::TEXTURETYPE_SHARED_IMAGE
|| m_config.textureType == TestConfig::TEXTURETYPE_SHARED_IMAGE_TEXTURE)
{
- const vector<string> extensions = eglu::getClientExtensions(egl, m_eglDisplay);
+ const vector<string> extensions = eglu::getDisplayExtensions(egl, m_eglDisplay);
if (!de::contains(extensions.begin(), extensions.end(), "EGL_KHR_image_base") ||
!de::contains(extensions.begin(), extensions.end(), "EGL_KHR_gl_texture_2D_image"))
DE_ASSERT(m_display == EGL_NO_DISPLAY);
m_display = eglu::getAndInitDisplay(m_eglTestCtx.getNativeDisplay());
- m_supported = eglu::getClientExtensions(m_eglTestCtx.getLibrary(), m_display);
+ m_supported = eglu::getDisplayExtensions(m_eglTestCtx.getLibrary(), m_display);
m_testCtx.setTestResult(QP_TEST_RESULT_PASS, "Pass");
}
const EGLDisplay dpy = m_display;
set<string> exts;
const vector<string> glExts = de::splitString((const char*) m_gl.getString(GL_EXTENSIONS));
- const vector<string> eglExts = eglu::getClientExtensions(egl, dpy);
+ const vector<string> eglExts = eglu::getDisplayExtensions(egl, dpy);
exts.insert(glExts.begin(), glExts.end());
exts.insert(eglExts.begin(), eglExts.end());
IterateResult iterate (void)
{
const Library& egl = m_eglTestCtx.getLibrary();
- vector<string> extensions = eglu::getClientExtensions(egl, m_display);
+ vector<string> extensions = eglu::getDisplayExtensions(egl, m_display);
for (vector<string>::const_iterator i = extensions.begin(); i != extensions.end(); i++)
m_testCtx.getLog() << tcu::TestLog::Message << *i << tcu::TestLog::EndMessage;