Home
last modified time | relevance | path

Searched refs:eglu (Results 1 – 25 of 95) sorted by relevance

1234

/external/deqp/framework/platform/win32/
DtcuWin32EGLNativeDisplayFactory.cpp57 static const eglu::NativeDisplay::Capability DISPLAY_CAPABILITIES = eglu::NativeDisplay::CAPABILITY…
58 static const eglu::NativePixmap::Capability BITMAP_CAPABILITIES = eglu::NativePixmap::CAPABILITY_…
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 |
64 eglu::NativeWindow::CAPABILITY_SET_SURFACE_SIZE |
65 eglu::NativeWindow::CAPABILITY_CHANGE_VISIBILITY);
67 class NativeDisplay : public eglu::NativeDisplay
[all …]
/external/deqp/framework/platform/android/
DtcuAndroidPlatform.cpp50 static const eglu::NativeDisplay::Capability DISPLAY_CAPABILITIES = eglu::NativeDisplay::CAPABILITY…
51 static const eglu::NativeWindow::Capability WINDOW_CAPABILITIES = (eglu::NativeWindow::Capability…
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") {} in NativeDisplay()
68 class NativeDisplayFactory : public eglu::NativeDisplayFactory
74 virtual eglu::NativeDisplay* createDisplay (const EGLAttrib* attribList) const;
77 class NativeWindow : public eglu::NativeWindow
95 class NativeWindowFactory : public eglu::NativeWindowFactory
[all …]
/external/deqp/framework/platform/raspi/
DtcuRaspiPlatform.cpp46 static const eglu::NativeDisplay::Capability DISPLAY_CAPABILITIES = eglu::NativeDisplay::CAPABILITY…
47 static const eglu::NativeWindow::Capability WINDOW_CAPABILITIES = eglu::NativeWindow::CAPABILITY_…
49 class Display : public eglu::NativeDisplay
52 Display (void) : eglu::NativeDisplay(DISPLAY_CAPABILITIES) {} in Display()
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::NativeWindowFactory
86 …WindowFactory (void) : eglu::NativeWindowFactory("dispman", "Dispman Window", WINDOW_CAPABILITIES… in WindowFactory()
89eglu::NativeWindow* createWindow (eglu::NativeDisplay* display, const eglu::WindowParams& param…
[all …]
/external/deqp/modules/egl/
DteglQuerySurfaceTests.cpp52 using eglu::ConfigInfo;
58 const char* name = eglu::getSurfaceAttribName(attribute); in logSurfaceAttribute()
59 const eglu::SurfaceAttribValueFmt valueFmt (attribute, value); in logSurfaceAttribute()
67 …logSurfaceAttribute(log, attributes[ndx], eglu::querySurfaceInt(egl, display, surface, attributes[… in logSurfaceAttributes()
107 …TestContext& eglTestCtx, const char* name, const char* description, const eglu::FilterList& filter…
113 …TestContext& eglTestCtx, const char* name, const char* description, const eglu::FilterList& filter… in QuerySurfaceCase()
127 const EGLint id = eglu::querySurfaceInt(egl, display, surface, EGL_CONFIG_ID); in checkCommonAttributes()
138 const EGLint width = eglu::querySurfaceInt(egl, display, surface, EGL_WIDTH); in checkCommonAttributes()
139 const EGLint height = eglu::querySurfaceInt(egl, display, surface, EGL_HEIGHT); in checkCommonAttributes()
150 const EGLint hRes = eglu::querySurfaceInt(egl, display, surface, EGL_HORIZONTAL_RESOLUTION); in checkCommonAttributes()
[all …]
DteglCreateSurfaceTests.cpp59 std::vector<std::string> extensions = eglu::getClientExtensions(egl); in checkEGLPlatformSupport()
65 …ateWindowSurface (EGLDisplay display, EGLConfig config, eglu::NativeDisplay& nativeDisplay, eglu::… in createWindowSurface()
86 …atePixmapSurface (EGLDisplay display, EGLConfig config, eglu::NativeDisplay& nativeDisplay, eglu::… in createPixmapSurface()
110 …x, const char* name, const char* description, bool useLegacyCreate, const eglu::FilterList& filter… in CreateWindowSurfaceCase()
120 EGLint id = eglu::getConfigID(egl, display, config); in executeForConfig()
121 …const eglu::NativeWindowFactory& windowFactory = eglu::selectNativeWindowFactory(m_eglTestCtx.getN… in executeForConfig()
127 … if ((windowFactory.getCapabilities() & eglu::NativeWindow::CAPABILITY_CREATE_SURFACE_LEGACY) == 0) in executeForConfig()
132 …if ((windowFactory.getCapabilities() & eglu::NativeWindow::CAPABILITY_CREATE_SURFACE_PLATFORM) == … in executeForConfig()
142eglu::NativeWindow> window (windowFactory.createWindow(&m_eglTestCtx.getNativeDisplay(), display… in executeForConfig()
143eglu::UniqueSurface surface (egl, display, createWindowSurface(display, config, m_eglTestCtx… in executeForConfig()
[all …]
DteglRenderCase.cpp74 … const char* name, const char* description, EGLint surfaceTypeMask, const eglu::FilterList& filter… in RenderCase()
118 const EGLint configId = eglu::getConfigID(egl, display, config); in executeForConfig()
120 const eglu::NativeDisplayFactory& displayFactory = m_eglTestCtx.getNativeDisplayFactory(); in executeForConfig()
121 eglu::NativeDisplay& nativeDisplay = m_eglTestCtx.getNativeDisplay(); in executeForConfig()
132 …const eglu::NativeWindowFactory& windowFactory = eglu::selectNativeWindowFactory(displayFactory, m… in executeForConfig()
136 …const eglu::WindowParams params (width, height, eglu::parseWindowVisibility(m_testCtx.getComman… in executeForConfig()
137 …de::UniquePtr<eglu::NativeWindow> window (windowFactory.createWindow(&nativeDisplay, display, con… in executeForConfig()
139 eglu::UniqueSurface surface (egl, display, eglSurface); in executeForConfig()
157 …const eglu::NativePixmapFactory& pixmapFactory = eglu::selectNativePixmapFactory(displayFactory, m… in executeForConfig()
161 …std::auto_ptr<eglu::NativePixmap> pixmap (pixmapFactory.createPixmap(&nativeDisplay, display, con… in executeForConfig()
[all …]
DteglNativeColorMappingTests.cpp250 …const tcu::UVec4 eglBitDepth((deUint32)eglu::getConfigAttribInt(egl, display, config, EGL_RED_SIZE… in validate()
251 (deUint32)eglu::getConfigAttribInt(egl, display, config, EGL_GREEN_SIZE), in validate()
252 (deUint32)eglu::getConfigAttribInt(egl, display, config, EGL_BLUE_SIZE), in validate()
253 (deUint32)eglu::getConfigAttribInt(egl, display, config, EGL_ALPHA_SIZE)); in validate()
287 … name, const char* description, bool render, NativeType nativeType, const eglu::FilterList& filter…
297 … name, const char* description, bool render, NativeType nativeType, const eglu::FilterList& filter… in NativeColorMappingCase()
311 …log << TestLog::Message << "EGL_RED_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL… in logConfigInfo()
312 …log << TestLog::Message << "EGL_GREEN_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EG… in logConfigInfo()
313 …log << TestLog::Message << "EGL_BLUE_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL… in logConfigInfo()
314 …log << TestLog::Message << "EGL_ALPHA_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EG… in logConfigInfo()
[all …]
DteglQueryContextTests.cpp52 using eglu::ConfigInfo;
86 class GetCurrentContextCase : public SingleContextRenderCase, private eglu::CallLogWrapper
89 …TestContext& eglTestCtx, const char* name, const char* description, const eglu::FilterList& filter… in GetCurrentContextCase()
91 , eglu::CallLogWrapper (eglTestCtx.getLibrary(), m_testCtx.getLog()) in GetCurrentContextCase()
128 class GetCurrentSurfaceCase : public SingleContextRenderCase, private eglu::CallLogWrapper
131 …TestContext& eglTestCtx, const char* name, const char* description, const eglu::FilterList& filter… in GetCurrentSurfaceCase()
133 , eglu::CallLogWrapper (eglTestCtx.getLibrary(), m_testCtx.getLog()) in GetCurrentSurfaceCase()
170 class GetCurrentDisplayCase : public SingleContextRenderCase, private eglu::CallLogWrapper
173 …TestContext& eglTestCtx, const char* name, const char* description, const eglu::FilterList& filter… in GetCurrentDisplayCase()
175 , eglu::CallLogWrapper (eglTestCtx.getLibrary(), m_testCtx.getLog()) in GetCurrentDisplayCase()
[all …]
DteglNativeCoordMappingTests.cpp328 … name, const char* description, bool render, NativeType nativeType, const eglu::FilterList& filter…
338 … name, const char* description, bool render, NativeType nativeType, const eglu::FilterList& filter… in NativeCoordMappingCase()
352 …log << TestLog::Message << "EGL_RED_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL… in logConfigInfo()
353 …log << TestLog::Message << "EGL_GREEN_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EG… in logConfigInfo()
354 …log << TestLog::Message << "EGL_BLUE_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL… in logConfigInfo()
355 …log << TestLog::Message << "EGL_ALPHA_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EG… in logConfigInfo()
356 …log << TestLog::Message << "EGL_DEPTH_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EG… in logConfigInfo()
357 …log << TestLog::Message << "EGL_STENCIL_SIZE: " << eglu::getConfigAttribInt(egl, display, config, … in logConfigInfo()
358 …log << TestLog::Message << "EGL_SAMPLES: " << eglu::getConfigAttribInt(egl, display, config, EGL_… in logConfigInfo()
364 bool testNativeWindow (TestLog& log, eglu::NativeDisplay& nativeDisplay, eglu::NativeWindow& native… in testNativeWindow()
[all …]
DteglSimpleConfigCase.cpp40 using eglu::ConfigInfo;
42 using namespace eglu;
119 static bool colorBits (const eglu::CandidateConfig& c) in colorBits()
128 static bool notColorBits (const eglu::CandidateConfig& c) in notColorBits()
136 static bool hasDepth (const eglu::CandidateConfig& c) { return c.depthSize() > 0; } in hasDepth()
137 static bool noDepth (const eglu::CandidateConfig& c) { return c.depthSize() == 0; } in noDepth()
138 static bool hasStencil (const eglu::CandidateConfig& c) { return c.stencilSize() > 0; } in hasStencil()
139 static bool noStencil (const eglu::CandidateConfig& c) { return c.stencilSize() == 0; } in noStencil()
141 static bool isConformant (const eglu::CandidateConfig& c) in isConformant()
151 eglu::ConfigFilter filter; in getDefaultFilterLists()
[all …]
DteglApiCase.cpp53 m_display = eglu::getAndInitDisplay(m_eglTestCtx.getNativeDisplay()); in init()
54 m_supportedClientAPIs = eglu::getClientAPIs(m_eglTestCtx.getLibrary(), m_display); in init()
90 …g() << TestLog::Message << "// ERROR expected: " << eglu::getErrorStr(expected) << ", Got: " << eg… in expectError()
101 …ge << "// ERROR expected: " << eglu::getErrorStr(expectedA) << " or " << eglu::getErrorStr(expecte… in expectEitherError()
111 …() << TestLog::Message << "// ERROR expected: " << eglu::getBooleanStr(expected) << ", Got: " << in expectBoolean()
159 bool ApiCase::getConfig (EGLConfig* config, const eglu::FilterList& filters) in getConfig()
163 *config = eglu::chooseSingleConfig(m_eglTestCtx.getLibrary(), m_display, filters); in getConfig()
DteglTestCase.hpp40 namespace eglu namespace
63 … EglTestContext (tcu::TestContext& testCtx, const eglu::NativeDisplayFactory& displayFactory);
67 …const eglu::NativeDisplayFactory& getNativeDisplayFactory (void) const { return m_nativeDisplayFac… in getNativeDisplayFactory()
68 eglu::NativeDisplay& getNativeDisplay (void) const { return *m_nativeDisplay; } in getNativeDisplay()
79 const eglu::NativeDisplayFactory& m_nativeDisplayFactory;
80 de::UniquePtr<eglu::NativeDisplay> m_nativeDisplay;
81 mutable eglu::GLLibraryCache m_glLibraryCache;
DteglCreateContextExtTests.cpp178 …(EglTestContext& eglTestCtx, EGLenum api, const EGLint* attribList, const eglu::FilterList& filter…
195 const eglu::FilterList m_filter;
274 …(EglTestContext& eglTestCtx, EGLenum api, const EGLint* attribList, const eglu::FilterList& filter… in CreateContextExtCase()
293 m_display = eglu::getAndInitDisplay(m_eglTestCtx.getNativeDisplay()); in init()
294 m_configs = eglu::chooseConfigs(m_eglTestCtx.getLibrary(), m_display, m_filter); in init()
372 vector<string> extensions = eglu::getDisplayExtensions(m_eglTestCtx.getLibrary(), m_display); in checkRequiredExtensions()
890 const EGLint surfaceTypes = eglu::getConfigAttribInt(egl, m_display, config, EGL_SURFACE_TYPE); in iterate()
891 const EGLint configId = eglu::getConfigAttribInt(egl, m_display, config, EGL_CONFIG_ID); in iterate()
902eglu::UniqueSurface surface (egl, m_display, egl.createPbufferSurface(m_display, config, attrib… in iterate()
909 …const eglu::NativeWindowFactory& factory = eglu::selectNativeWindowFactory(m_eglTestCtx.getNativeD… in iterate()
[all …]
DteglQueryConfigTests.cpp44 using eglu::ConfigInfo;
50 …log << TestLog::Message << " " << eglu::getConfigAttribName(attrib) << ": " << eglu::getConfigAtt… in logConfigAttribute()
53 static bool isAttributePresent (const eglu::Version& version, EGLenum attribute) in isAttributePresent()
58 if (version < eglu::Version(1, 3)) return false; in isAttributePresent()
64 if (version < eglu::Version(1, 2)) return false; in isAttributePresent()
71 if (version < eglu::Version(1, 1)) return false; in isAttributePresent()
80 class GetConfigsBoundsCase : public TestCase, protected eglu::CallLogWrapper
93 m_display = eglu::getAndInitDisplay(m_eglTestCtx.getNativeDisplay()); in init()
118 eglu::checkError(eglGetError(), DE_NULL, __FILE__, __LINE__); in checkGetConfigsBounds()
194 class GetConfigAttribCase : public TestCase, protected eglu::CallLogWrapper
[all …]
DteglSurfacelessContextTests.cpp58 …TestContext& eglTestCtx, const char* name, const char* description, const eglu::FilterList& filter…
64 …TestContext& eglTestCtx, const char* name, const char* description, const eglu::FilterList& filter… in SurfacelessContextCase()
77 const EGLint id = eglu::getConfigAttribInt(egl, display, config, EGL_CONFIG_ID); in executeForConfig()
78 const EGLint apiBits = eglu::getConfigAttribInt(egl, display, config, EGL_RENDERABLE_TYPE); in executeForConfig()
99 if (!eglu::hasExtension(egl, display, "EGL_KHR_surfaceless_context")) in executeForConfig()
111eglu::UniqueContext context(egl, display, egl.createContext(display, config, EGL_NO_CONTEXT, apis[… in executeForConfig()
125 …log << TestLog::Message << " Fail, context: " << tcu::toHex(*context) << ", error: " << eglu::get… in executeForConfig()
149 getDefaultFilterLists(filterLists, eglu::FilterList()); in init()
DteglSwapBuffersTests.cpp273 …const eglu::NativeWindowFactory& factory = eglu::selectNativeWindowFactory(m_eglTestCtx.getNative… in executeForConfig()
275 if ((factory.getCapabilities() & eglu::NativeWindow::CAPABILITY_READ_SCREEN_PIXELS) == 0) in executeForConfig()
281 …log << TestLog::Message << "EGL_RED_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL… in executeForConfig()
282 …log << TestLog::Message << "EGL_GREEN_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EG… in executeForConfig()
283 …log << TestLog::Message << "EGL_BLUE_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EGL… in executeForConfig()
284 …log << TestLog::Message << "EGL_ALPHA_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EG… in executeForConfig()
285 …log << TestLog::Message << "EGL_DEPTH_SIZE: " << eglu::getConfigAttribInt(egl, display, config, EG… in executeForConfig()
286 …log << TestLog::Message << "EGL_STENCIL_SIZE: " << eglu::getConfigAttribInt(egl, display, config, … in executeForConfig()
287 …log << TestLog::Message << "EGL_SAMPLES: " << eglu::getConfigAttribInt(egl, display, config, EGL_… in executeForConfig()
292 …ePtr<eglu::NativeWindow> window (factory.createWindow(&m_eglTestCtx.getNativeDisplay(), display, c… in executeForConfig()
[all …]
DteglResizeTests.cpp76 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); in getEGLConfig()
[all …]
DteglImageTests.cpp72 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)…
106 …age << " Fail: Error code mismatch! Expected " << eglu::getErrorStr(expectError) << ", got " << e… in checkCallError()
137 …age << " Fail: Error code mismatch! Expected " << eglu::getErrorStr(expectError) << ", got " << e… in checkCallReturn()
162 m_display = eglu::getAndInitDisplay(m_eglTestCtx.getNativeDisplay()); in init()
[all …]
DteglCreateContextTests.cpp44 …TestContext& eglTestCtx, const char* name, const char* description, const eglu::FilterList& filter…
50 …TestContext& eglTestCtx, const char* name, const char* description, const eglu::FilterList& filter… in CreateContextCase()
63 EGLint id = eglu::getConfigAttribInt(egl, display, config, EGL_CONFIG_ID); in executeForConfig()
64 EGLint apiBits = eglu::getConfigAttribInt(egl, display, config, EGL_RENDERABLE_TYPE); in executeForConfig()
100 …log << TestLog::Message << " Fail, context: " << tcu::toHex(context) << ", error: " << eglu::getE… in executeForConfig()
125 getDefaultFilterLists(filterLists, eglu::FilterList()); in init()
DteglGetProcAddressTests.cpp93 class GetProcAddressCase : public TestCase, protected eglu::CallLogWrapper
129 m_supported = eglu::getClientExtensions(m_eglTestCtx.getLibrary()); in init()
131 catch (const eglu::Error& error) in init()
140 m_display = eglu::getAndInitDisplay(m_eglTestCtx.getNativeDisplay()); in init()
143 …const std::vector<std::string> displayExtensios = eglu::getDisplayExtensions(m_eglTestCtx.getLibra… in init()
204 eglu::checkError(eglGetError(), "eglGetProcAddress()", __FILE__, __LINE__); in executeTest()
237 …const bool apiSupported = (eglu::getRenderableAPIsMask(m_eglTestCtx.getLibrary(), m_display) &… in executeTest()
245 …log << TestLog::Message << eglu::getConfigAttribValueStr(EGL_RENDERABLE_TYPE, m_apiBit) << " not s… in executeTest()
255 eglu::checkError(eglGetError(), "eglGetProcAddress()", __FILE__, __LINE__); in executeTest()
DteglMultiContextTests.cpp89 bool isES2Renderable (const eglu::CandidateConfig& c) in isES2Renderable()
96 eglu::FilterList filters; in getConfig()
98 return eglu::chooseSingleConfig(egl, display, filters); in getConfig()
123 …const eglu::UniqueDisplay display (egl, eglu::getAndInitDisplay(m_eglTestCtx.getNativeDisplay()… in iterate()
126 …const eglu::UniqueSurface surface (egl, *display, m_use != USE_NONE ? egl.createPbufferSurface(… in iterate()
162 …resultCollector.fail("eglCreateContext() produced error that is not EGL_BAD_ALLOC: " + eglu::getEr… in iterate()
180 …e << "Failed to make " << (contextCount + 1) << "th context current: " << eglu::getErrorStr(makeCu… in iterate()
DteglSimpleConfigCase.hpp41 …TestContext& eglTestCtx, const char* name, const char* description, const eglu::FilterList& filter…
57 const eglu::FilterList m_filters;
64 class NamedFilterList : public eglu::FilterList
77 void getDefaultFilterLists (std::vector<NamedFilterList>& lists, const eglu::FilterList& baseFilter…
DteglConfigList.cpp64 EGLDisplay display = eglu::getAndInitDisplay(m_eglTestCtx.getNativeDisplay()); in iterate()
65 vector<EGLConfig> configs = eglu::getConfigs(egl, display); in iterate()
109 std::string colorBufferType = de::toString(eglu::getColorBufferTypeStr(val)); in iterate()
113 std::string caveat = de::toString(eglu::getConfigCaveatStr(val)); in iterate()
120 std::string conformant = de::toString(eglu::getAPIBitsStr(val)); in iterate()
148 std::string renderableTypes = de::toString(eglu::getAPIBitsStr(val)); in iterate()
161 std::string surfaceTypes = de::toString(eglu::getSurfaceBitsStr(val)); in iterate()
165 std::string transparentType = de::toString(eglu::getTransparentTypeStr(val)); in iterate()
/external/deqp/framework/platform/null/
DtcuNullPlatform.cpp36 class NullEGLDisplay : public eglu::NativeDisplay
40 : eglu::NativeDisplay(CAPABILITY_GET_DISPLAY_LEGACY) in NullEGLDisplay()
54 class NullEGLDisplayFactory : public eglu::NativeDisplayFactory
58 …: eglu::NativeDisplayFactory("null", "Null EGL Display", eglu::NativeDisplay::CAPABILITY_GET_DISPL… in NullEGLDisplayFactory()
62 eglu::NativeDisplay* createDisplay (const eglw::EGLAttrib*) const in createDisplay()
/external/deqp/framework/egl/
DegluDefs.hpp28 #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, __…
35 namespace eglu namespace

1234