/external/deqp/framework/platform/win32/ |
tcuWin32EGLNativeDisplayFactory.cpp | 57 static const eglu::NativeDisplay::Capability DISPLAY_CAPABILITIES = eglu::NativeDisplay::CAPABILITY_GET_DISPLAY_LEGACY; 58 static const eglu::NativePixmap::Capability BITMAP_CAPABILITIES = eglu::NativePixmap::CAPABILITY_CREATE_SURFACE_LEGACY; 59 static const eglu::NativeWindow::Capability WINDOW_CAPABILITIES = (eglu::NativeWindow::Capability) 60 (eglu::NativeWindow::CAPABILITY_CREATE_SURFACE_LEGACY | 61 eglu::NativeWindow::CAPABILITY_GET_SURFACE_SIZE | 62 eglu::NativeWindow::CAPABILITY_GET_SCREEN_SIZE | 63 eglu::NativeWindow::CAPABILITY_READ_SCREEN_PIXELS [all...] |
/external/deqp/framework/platform/raspi/ |
tcuRaspiPlatform.cpp | 46 static const eglu::NativeDisplay::Capability DISPLAY_CAPABILITIES = eglu::NativeDisplay::CAPABILITY_GET_DISPLAY_LEGACY; 47 static const eglu::NativeWindow::Capability WINDOW_CAPABILITIES = eglu::NativeWindow::CAPABILITY_CREATE_SURFACE_LEGACY; 49 class Display : public eglu::NativeDisplay 52 Display (void) : eglu::NativeDisplay(DISPLAY_CAPABILITIES) {} 58 class DisplayFactory : public eglu::NativeDisplayFactory 64 eglu::NativeDisplay* createDisplay (const EGLAttrib* attribList) const; 67 class Window : public eglu::NativeWindow 83 class WindowFactory : public eglu::NativeWindowFactor [all...] |
/external/deqp/framework/platform/android/ |
tcuAndroidPlatform.cpp | 50 static const eglu::NativeDisplay::Capability DISPLAY_CAPABILITIES = eglu::NativeDisplay::CAPABILITY_GET_DISPLAY_LEGACY; 51 static const eglu::NativeWindow::Capability WINDOW_CAPABILITIES = (eglu::NativeWindow::Capability)(eglu::NativeWindow::CAPABILITY_CREATE_SURFACE_LEGACY | 52 eglu::NativeWindow::CAPABILITY_SET_SURFACE_SIZE | 53 eglu::NativeWindow::CAPABILITY_GET_SCREEN_SIZE); 55 class NativeDisplay : public eglu::NativeDisplay 58 NativeDisplay (void) : eglu::NativeDisplay(DISPLAY_CAPABILITIES), m_library("libEGL.so") {} 68 class NativeDisplayFactory : public eglu::NativeDisplayFactor [all...] |
/external/deqp/modules/egl/ |
teglQuerySurfaceTests.cpp | 52 using eglu::ConfigInfo; 58 const char* name = eglu::getSurfaceAttribName(attribute); 59 const eglu::SurfaceAttribValueFmt valueFmt (attribute, value); 67 logSurfaceAttribute(log, attributes[ndx], eglu::querySurfaceInt(egl, display, surface, attributes[ndx])); 107 QuerySurfaceCase (EglTestContext& eglTestCtx, const char* name, const char* description, const eglu::FilterList& filters); 113 QuerySurfaceCase::QuerySurfaceCase (EglTestContext& eglTestCtx, const char* name, const char* description, const eglu::FilterList& filters) 127 const EGLint id = eglu::querySurfaceInt(egl, display, surface, EGL_CONFIG_ID); 138 const EGLint width = eglu::querySurfaceInt(egl, display, surface, EGL_WIDTH); 139 const EGLint height = eglu::querySurfaceInt(egl, display, surface, EGL_HEIGHT); 150 const EGLint hRes = eglu::querySurfaceInt(egl, display, surface, EGL_HORIZONTAL_RESOLUTION) [all...] |
teglCreateSurfaceTests.cpp | 59 std::vector<std::string> extensions = eglu::getClientExtensions(egl); 65 EGLSurface createWindowSurface (EGLDisplay display, EGLConfig config, eglu::NativeDisplay& nativeDisplay, eglu::NativeWindow& window, bool useLegacyCreate) 86 EGLSurface createPixmapSurface (EGLDisplay display, EGLConfig config, eglu::NativeDisplay& nativeDisplay, eglu::NativePixmap& pixmap, bool useLegacyCreate) 110 CreateWindowSurfaceCase (EglTestContext& eglTestCtx, const char* name, const char* description, bool useLegacyCreate, const eglu::FilterList& filters) 120 EGLint id = eglu::getConfigID(egl, display, config); 121 const eglu::NativeWindowFactory& windowFactory = eglu::selectNativeWindowFactory(m_eglTestCtx.getNativeDisplayFactory(), m_testCtx.getCommandLine()); 127 if ((windowFactory.getCapabilities() & eglu::NativeWindow::CAPABILITY_CREATE_SURFACE_LEGACY) == 0 [all...] |
teglSimpleConfigCase.cpp | 40 using eglu::ConfigInfo; 42 using namespace eglu; 119 static bool colorBits (const eglu::CandidateConfig& c) 128 static bool notColorBits (const eglu::CandidateConfig& c) 136 static bool hasDepth (const eglu::CandidateConfig& c) { return c.depthSize() > 0; } 137 static bool noDepth (const eglu::CandidateConfig& c) { return c.depthSize() == 0; } 138 static bool hasStencil (const eglu::CandidateConfig& c) { return c.stencilSize() > 0; } 139 static bool noStencil (const eglu::CandidateConfig& c) { return c.stencilSize() == 0; } 141 static bool isConformant (const eglu::CandidateConfig& c) 151 eglu::ConfigFilter filter [all...] |
teglApiCase.cpp | 53 m_display = eglu::getAndInitDisplay(m_eglTestCtx.getNativeDisplay()); 54 m_supportedClientAPIs = eglu::getClientAPIs(m_eglTestCtx.getLibrary(), m_display); 90 m_testCtx.getLog() << TestLog::Message << "// ERROR expected: " << eglu::getErrorStr(expected) << ", Got: " << eglu::getErrorStr(err) << TestLog::EndMessage; 101 m_testCtx.getLog() << TestLog::Message << "// ERROR expected: " << eglu::getErrorStr(expectedA) << " or " << eglu::getErrorStr(expectedB) << ", Got: " << eglu::getErrorStr(err) << TestLog::EndMessage; 111 m_testCtx.getLog() << TestLog::Message << "// ERROR expected: " << eglu::getBooleanStr(expected) << ", Got: " << eglu::getBooleanStr(got) << TestLog::EndMessage; 159 bool ApiCase::getConfig (EGLConfig* config, const eglu::FilterList& filters [all...] |
teglTestCase.hpp | 40 namespace eglu namespace 63 EglTestContext (tcu::TestContext& testCtx, const eglu::NativeDisplayFactory& displayFactory); 67 const eglu::NativeDisplayFactory& getNativeDisplayFactory (void) const { return m_nativeDisplayFactory; } 68 eglu::NativeDisplay& getNativeDisplay (void) const { return *m_nativeDisplay; } 79 const eglu::NativeDisplayFactory& m_nativeDisplayFactory; 80 de::UniquePtr<eglu::NativeDisplay> m_nativeDisplay; 81 mutable eglu::GLLibraryCache m_glLibraryCache;
|
teglRenderCase.cpp | 74 RenderCase::RenderCase (EglTestContext& eglTestCtx, const char* name, const char* description, EGLint surfaceTypeMask, const eglu::FilterList& filters) 118 const EGLint configId = eglu::getConfigID(egl, display, config); 120 const eglu::NativeDisplayFactory& displayFactory = m_eglTestCtx.getNativeDisplayFactory(); 121 eglu::NativeDisplay& nativeDisplay = m_eglTestCtx.getNativeDisplay(); 132 const eglu::NativeWindowFactory& windowFactory = eglu::selectNativeWindowFactory(displayFactory, m_testCtx.getCommandLine()); 136 const eglu::WindowParams params (width, height, eglu::parseWindowVisibility(m_testCtx.getCommandLine())); 137 de::UniquePtr<eglu::NativeWindow> window (windowFactory.createWindow(&nativeDisplay, display, config, DE_NULL, params)); 139 eglu::UniqueSurface surface (egl, display, eglSurface) [all...] |
teglNativeColorMappingTests.cpp | 250 const tcu::UVec4 eglBitDepth((deUint32)eglu::getConfigAttribInt(egl, display, config, EGL_RED_SIZE), 251 (deUint32)eglu::getConfigAttribInt(egl, display, config, EGL_GREEN_SIZE), 252 (deUint32)eglu::getConfigAttribInt(egl, display, config, EGL_BLUE_SIZE), 253 (deUint32)eglu::getConfigAttribInt(egl, display, config, EGL_ALPHA_SIZE)); 287 NativeColorMappingCase (EglTestContext& eglTestCtx, const char* name, const char* description, bool render, NativeType nativeType, const eglu::FilterList& filters); 297 NativeColorMappingCase::NativeColorMappingCase (EglTestContext& eglTestCtx, const char* name, const char* description, bool render, NativeType nativeType, const eglu::FilterList& filters) 311 log << TestLog::Message << "EGL_RED_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL_RED_SIZE) << TestLog::EndMessage; 312 log << TestLog::Message << "EGL_GREEN_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL_GREEN_SIZE) << TestLog::EndMessage; 313 log << TestLog::Message << "EGL_BLUE_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL_BLUE_SIZE) << TestLog::EndMessage; 314 log << TestLog::Message << "EGL_ALPHA_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL_ALPHA_SIZE) << TestLog::EndMessage [all...] |
teglQueryContextTests.cpp | 52 using eglu::ConfigInfo; 86 class GetCurrentContextCase : public SingleContextRenderCase, private eglu::CallLogWrapper 89 GetCurrentContextCase (EglTestContext& eglTestCtx, const char* name, const char* description, const eglu::FilterList& filters, EGLint surfaceTypeMask) 91 , eglu::CallLogWrapper (eglTestCtx.getLibrary(), m_testCtx.getLog()) 128 class GetCurrentSurfaceCase : public SingleContextRenderCase, private eglu::CallLogWrapper 131 GetCurrentSurfaceCase (EglTestContext& eglTestCtx, const char* name, const char* description, const eglu::FilterList& filters, EGLint surfaceTypeMask) 133 , eglu::CallLogWrapper (eglTestCtx.getLibrary(), m_testCtx.getLog()) 170 class GetCurrentDisplayCase : public SingleContextRenderCase, private eglu::CallLogWrapper 173 GetCurrentDisplayCase (EglTestContext& eglTestCtx, const char* name, const char* description, const eglu::FilterList& filters, EGLint surfaceTypeMask) 175 , eglu::CallLogWrapper (eglTestCtx.getLibrary(), m_testCtx.getLog() [all...] |
teglNativeCoordMappingTests.cpp | 328 NativeCoordMappingCase (EglTestContext& eglTestCtx, const char* name, const char* description, bool render, NativeType nativeType, const eglu::FilterList& filters); 338 NativeCoordMappingCase::NativeCoordMappingCase (EglTestContext& eglTestCtx, const char* name, const char* description, bool render, NativeType nativeType, const eglu::FilterList& filters) 352 log << TestLog::Message << "EGL_RED_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL_RED_SIZE) << TestLog::EndMessage; 353 log << TestLog::Message << "EGL_GREEN_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL_GREEN_SIZE) << TestLog::EndMessage; 354 log << TestLog::Message << "EGL_BLUE_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL_BLUE_SIZE) << TestLog::EndMessage; 355 log << TestLog::Message << "EGL_ALPHA_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL_ALPHA_SIZE) << TestLog::EndMessage; 356 log << TestLog::Message << "EGL_DEPTH_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL_DEPTH_SIZE) << TestLog::EndMessage; 357 log << TestLog::Message << "EGL_STENCIL_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL_STENCIL_SIZE) << TestLog::EndMessage; 358 log << TestLog::Message << "EGL_SAMPLES: " << eglu::getConfigAttribInt(egl, display, config, EGL_SAMPLES) << TestLog::EndMessage; 364 bool testNativeWindow (TestLog& log, eglu::NativeDisplay& nativeDisplay, eglu::NativeWindow& nativeWindow, EGLDisplay display, EGLContext co (…) [all...] |
teglQueryConfigTests.cpp | 44 using eglu::ConfigInfo; 50 log << TestLog::Message << " " << eglu::getConfigAttribName(attrib) << ": " << eglu::getConfigAttribValueStr(attrib, value) << TestLog::EndMessage; 53 static bool isAttributePresent (const eglu::Version& version, EGLenum attribute) 58 if (version < eglu::Version(1, 3)) return false; 64 if (version < eglu::Version(1, 2)) return false; 71 if (version < eglu::Version(1, 1)) return false; 80 class GetConfigsBoundsCase : public TestCase, protected eglu::CallLogWrapper 93 m_display = eglu::getAndInitDisplay(m_eglTestCtx.getNativeDisplay()); 118 eglu::checkError(eglGetError(), DE_NULL, __FILE__, __LINE__) [all...] |
teglResizeTests.cpp | 76 using eglu::AttribMap; 77 using eglu::NativeDisplay; 78 using eglu::NativeWindow; 79 using eglu::ScopedCurrentContext; 80 using eglu::UniqueSurface; 81 using eglu::UniqueContext; 82 using eglu::NativeWindowFactory; 83 using eglu::WindowParams; 86 typedef eglu::WindowParams::Visibility Visibility; 138 return eglu::chooseSingleConfig(egl, eglDisplay, attribMap) [all...] |
teglSurfacelessContextTests.cpp | 58 SurfacelessContextCase (EglTestContext& eglTestCtx, const char* name, const char* description, const eglu::FilterList& filters); 64 SurfacelessContextCase::SurfacelessContextCase (EglTestContext& eglTestCtx, const char* name, const char* description, const eglu::FilterList& filters) 77 const EGLint id = eglu::getConfigAttribInt(egl, display, config, EGL_CONFIG_ID); 78 const EGLint apiBits = eglu::getConfigAttribInt(egl, display, config, EGL_RENDERABLE_TYPE); 99 if (!eglu::hasExtension(egl, display, "EGL_KHR_surfaceless_context")) 111 eglu::UniqueContext context(egl, display, egl.createContext(display, config, EGL_NO_CONTEXT, apis[apiNdx].ctxAttrs)); 125 log << TestLog::Message << " Fail, context: " << tcu::toHex(*context) << ", error: " << eglu::getErrorName(err) << TestLog::EndMessage; 149 getDefaultFilterLists(filterLists, eglu::FilterList());
|
teglImageTests.cpp | 72 using eglu::AttribMap; 73 using eglu::NativeWindow; 74 using eglu::NativePixmap; 75 using eglu::UniqueImage; 76 using eglu::UniqueSurface; 77 using eglu::ScopedCurrentContext; 91 TCU_CHECK_AND_THROW(NotSupportedError, eglu::hasExtension(m_eglTestCtx.getLibrary(), DPY, EXTNAME), (string("Unsupported extension: ") + EXTNAME).c_str()) 106 log << TestLog::Message << " Fail: Error code mismatch! Expected " << eglu::getErrorStr(expectError) << ", got " << eglu::getErrorStr(error) << TestLog::EndMessage; 137 log << TestLog::Message << " Fail: Error code mismatch! Expected " << eglu::getErrorStr(expectError) << ", got " << eglu::getErrorStr(error) << TestLog::EndMessage [all...] |
teglSwapBuffersTests.cpp | 273 const eglu::NativeWindowFactory& factory = eglu::selectNativeWindowFactory(m_eglTestCtx.getNativeDisplayFactory(), m_testCtx.getCommandLine()); 275 if ((factory.getCapabilities() & eglu::NativeWindow::CAPABILITY_READ_SCREEN_PIXELS) == 0) 276 TCU_THROW(NotSupportedError, "eglu::NativeWindow doesn't support readScreenPixels()"); 281 log << TestLog::Message << "EGL_RED_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL_RED_SIZE) << TestLog::EndMessage; 282 log << TestLog::Message << "EGL_GREEN_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL_GREEN_SIZE) << TestLog::EndMessage; 283 log << TestLog::Message << "EGL_BLUE_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL_BLUE_SIZE) << TestLog::EndMessage; 284 log << TestLog::Message << "EGL_ALPHA_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL_ALPHA_SIZE) << TestLog::EndMessage; 285 log << TestLog::Message << "EGL_DEPTH_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL_DEPTH_SIZE) << TestLog::EndMessage; 286 log << TestLog::Message << "EGL_STENCIL_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL_STENCIL_SIZE) << TestLog::EndMessage [all...] |
teglGetProcAddressTests.cpp | 93 class GetProcAddressCase : public TestCase, protected eglu::CallLogWrapper 129 m_supported = eglu::getClientExtensions(m_eglTestCtx.getLibrary()); 131 catch (const eglu::Error& error) 140 m_display = eglu::getAndInitDisplay(m_eglTestCtx.getNativeDisplay()); 143 const std::vector<std::string> displayExtensios = eglu::getDisplayExtensions(m_eglTestCtx.getLibrary(), m_display); 204 eglu::checkError(eglGetError(), "eglGetProcAddress()", __FILE__, __LINE__); 237 const bool apiSupported = (eglu::getRenderableAPIsMask(m_eglTestCtx.getLibrary(), m_display) & m_apiBit) == m_apiBit; 245 log << TestLog::Message << eglu::getConfigAttribValueStr(EGL_RENDERABLE_TYPE, m_apiBit) << " not supported by any available configuration." << TestLog::EndMessage; 255 eglu::checkError(eglGetError(), "eglGetProcAddress()", __FILE__, __LINE__);
|
/external/deqp/framework/egl/ |
egluNativeWindow.cpp | 26 namespace eglu namespace 41 throw tcu::NotSupportedError("eglu::NativeWindow doesn't support eglCreateWindowSurface()", DE_NULL, __FILE__, __LINE__); 47 throw tcu::NotSupportedError("eglu::NativeWindow doesn't support eglCreatePlatformWindowSurface()", DE_NULL, __FILE__, __LINE__); 53 throw tcu::NotSupportedError("eglu::NativeWindow doesn't support querying the surface size", DE_NULL, __FILE__, __LINE__); 60 throw tcu::NotSupportedError("eglu::NativeWindow doesn't support resizing the surface", DE_NULL, __FILE__, __LINE__); 66 throw tcu::NotSupportedError("eglu::NativeWindow doesn't support querying the size of the window on the screen", DE_NULL, __FILE__, __LINE__); 72 throw tcu::NotSupportedError("eglu::NativeWindow doesn't support readScreenPixels", DE_NULL, __FILE__, __LINE__); 79 throw tcu::NotSupportedError("eglu::NativeWindow doesn't support changing visibility", DE_NULL, __FILE__, __LINE__); 100 } // eglu
|
egluPlatform.hpp | 36 namespace eglu namespace 52 * * eglu::NativeDisplay, created by eglu::NativeDisplayFactory 53 * * eglu::NativeWindow, created by eglu::NativeWindowFactory 54 * * eglu::NativePixmap, created by eglu::NativePixmapFactory 57 * adding eglu::GLContextFactory to m_contextFactoryRegistry in your 68 // Code outside porting layer will never attempt to delete eglu::Platform 97 * Native display factory registry holds list of eglu::NativeDisplayFactor [all...] |
egluDefs.hpp | 28 #define EGLU_CHECK(EGLW) eglu::checkError((EGLW).getError(), DE_NULL, __FILE__, __LINE__) 29 #define EGLU_CHECK_MSG(EGLW, MSG) eglu::checkError((EGLW).getError(), MSG, __FILE__, __LINE__) 30 #define EGLU_CHECK_CALL(EGLW, CALL) do { (EGLW).CALL; eglu::checkError((EGLW).getError(), #CALL, __FILE__, __LINE__); } while (deGetFalse()) 35 namespace eglu namespace 82 } // eglu
|
egluNativeDisplay.cpp | 27 namespace eglu namespace 61 TCU_THROW(NotSupportedError, "eglu::NativeDisplay can't be used with eglGetDisplay()"); 69 TCU_THROW(NotSupportedError, "eglu::NativeDisplay can't be used with eglGetPlatformDisplay()"); 77 TCU_THROW(NotSupportedError, "eglu::NativeDisplay can't be used with eglGetPlatformDisplay()"); 106 } // eglu
|
egluNativePixmap.cpp | 26 namespace eglu namespace 41 throw tcu::NotSupportedError("eglu::NativePixmap doesn't support eglCreatePixmapSurface()", DE_NULL, __FILE__, __LINE__); 47 throw tcu::NotSupportedError("eglu::NativePixmap doesn't support eglCreatePlatformPixmapSurface()", DE_NULL, __FILE__, __LINE__); 53 throw tcu::NotSupportedError("eglu::NativePixmap doesn't support readPixels", DE_NULL, __FILE__, __LINE__); 74 } // eglu
|
/external/deqp/framework/platform/null/ |
tcuNullPlatform.cpp | 36 class NullEGLDisplay : public eglu::NativeDisplay 40 : eglu::NativeDisplay(CAPABILITY_GET_DISPLAY_LEGACY) 54 class NullEGLDisplayFactory : public eglu::NativeDisplayFactory 58 : eglu::NativeDisplayFactory("null", "Null EGL Display", eglu::NativeDisplay::CAPABILITY_GET_DISPLAY_LEGACY) 62 eglu::NativeDisplay* createDisplay (const eglw::EGLAttrib*) const
|
tcuNullPlatform.hpp | 37 class Platform : public tcu::Platform, private glu::Platform, private eglu::Platform, private vk::Platform 44 virtual const eglu::Platform& getEGLPlatform (void) const { return static_cast<const eglu::Platform&>(*this); }
|