Lines Matching +full:log +full:-

1 /*-------------------------------------------------------------------------
3 * ---------------------------------------
11 * http://www.apache.org/licenses/LICENSE-2.0
22 *//*--------------------------------------------------------------------*/
81 // \todo [2012-10-02 pyry] Add tests for EGL_NOT_INITIALIZED to all functions taking in EGLDisplay in init()
82 // \todo [2012-10-02 pyry] Implement negative cases for following non-trivial cases: in init()
84 // - EGL_BAD_ACCESS is generated if buffer is already bound to a texture in init()
85 …// - EGL_BAD_MATCH is generated if the surface attribute EGL_TEXTURE_FORMAT is set to EGL_NO_TE… in init()
86 …// - EGL_BAD_MATCH is generated if buffer is not a valid buffer (currently only EGL_BACK_BUFFER… in init()
87 // - EGL_BAD_SURFACE is generated if surface is not a pbuffer surface supporting texture binding in init()
89 // - EGL_BAD_NATIVE_PIXMAP is generated if the implementation does not support native pixmaps in init()
90 // - EGL_BAD_NATIVE_PIXMAP may be generated if native_pixmap is not a valid native pixmap in init()
91 …// - EGL_BAD_MATCH is generated if the format of native_pixmap is not compatible with the color… in init()
93 // - EGL_BAD_MATCH is generated if the current rendering API is EGL_NONE in init()
94 …// - EGL_BAD_MATCH is generated if the server context state for share_context exists in an addre… in init()
95 …// - EGL_BAD_CONTEXT is generated if share_context is not an EGL rendering context of the same c… in init()
97 // - various BAD_MATCH, BAD_ACCESS etc. conditions in init()
99 …// - EGL_BAD_MATCH is generated if the EGL_TEXTURE_FORMAT attribute is not EGL_NO_TEXTURE, and … in init()
101 // - EGL_BAD_ATTRIBUTE is generated if attrib_list contains an invalid pixmap attribute in init()
102 …// - EGL_BAD_MATCH is generated if the attributes of native_pixmap do not correspond to config … in init()
103 …// - EGL_BAD_MATCH is generated if config does not support the specified OpenVG alpha format at… in init()
105 // - EGL_BAD_ATTRIBUTE is generated if attrib_list contains an invalid window attribute in init()
106 …// - EGL_BAD_MATCH is generated if the attributes of native_window do not correspond to config … in init()
107 …// - EGL_BAD_MATCH is generated if config does not support the specified OpenVG alpha format at… in init()
109 // - EGL_BAD_MATCH is generated if draw or read are not compatible with context in init()
110 …// - EGL_BAD_MATCH is generated if context is set to EGL_NO_CONTEXT and draw or read are not se… in init()
111 …// - EGL_BAD_MATCH is generated if draw or read are set to EGL_NO_SURFACE and context is not se… in init()
112 // - EGL_BAD_ACCESS is generated if context is current to some other thread in init()
113 …// - EGL_BAD_NATIVE_PIXMAP may be generated if a native pixmap underlying either draw or read i… in init()
114 …// - EGL_BAD_NATIVE_WINDOW may be generated if a native window underlying either draw or read i… in init()
116 …// - EGL_BAD_MATCH is generated if buffer is not a valid buffer (currently only EGL_BACK_BUFFER… in init()
118 // - EGL_BAD_SURFACE is generated if there is no surface bound to the current context in init()
120 …// - EGL_BAD_CURRENT_SURFACE is generated if the surface associated with the current context ha… in init()
134 TestLog& log = m_testCtx.getLog(); in init()
135log << TestLog::Section("Test1", "EGL_BAD_PARAMETER is generated if api is not one of the accepted… in init()
146 log << TestLog::EndSection; in init()
148log << TestLog::Section("Test2", "EGL_BAD_PARAMETER is generated if the specified client API is no… in init()
164 log << TestLog::EndSection; in init()
169 TestLog& log = m_testCtx.getLog(); in init()
172log << TestLog::Section("Test1", "EGL_BAD_DISPLAY is generated if display is not an EGL display co… in init()
177 expectFalse(eglBindTexImage((EGLDisplay)-1, EGL_NO_SURFACE, EGL_BACK_BUFFER)); in init()
180 log << TestLog::EndSection; in init()
182log << TestLog::Section("Test2", "EGL_BAD_SURFACE is generated if surface is not an EGL surface"); in init()
187 expectFalse(eglBindTexImage(display, (EGLSurface)-1, EGL_BACK_BUFFER)); in init()
190 log << TestLog::EndSection; in init()
197 TestLog& log = m_testCtx.getLog(); in init()
209log << TestLog::Section("Test1", "EGL_BAD_DISPLAY is generated if display is not an EGL display co… in init()
211 expectFalse(eglCopyBuffers(EGL_NO_DISPLAY, EGL_NO_SURFACE, pixmap->getLegacyNative())); in init()
214 expectFalse(eglCopyBuffers((EGLDisplay)-1, EGL_NO_SURFACE, pixmap->getLegacyNative())); in init()
217 log << TestLog::EndSection; in init()
221log << TestLog::Section("Test2", "EGL_BAD_SURFACE is generated if surface is not an EGL surface"); in init()
223 expectFalse(eglCopyBuffers(display, EGL_NO_SURFACE, pixmap->getLegacyNative())); in init()
226 expectFalse(eglCopyBuffers(display, (EGLSurface)-1, pixmap->getLegacyNative())); in init()
229 log << TestLog::EndSection; in init()
252 TestLog& log = m_testCtx.getLog(); in init()
257log << TestLog::Section("Test1", "EGL_BAD_DISPLAY is generated if display is not an EGL display co… in init()
262 …expectFalse(eglChooseConfig((EGLDisplay)-1, s_emptyAttribList, &configs[0], DE_LENGTH_OF_ARRAY(con… in init()
265 log << TestLog::EndSection; in init()
267log << TestLog::Section("Test2", "EGL_BAD_ATTRIBUTE is generated if attribute_list contains an inv… in init()
275 log << TestLog::EndSection; in init()
277 log << TestLog::Section("Test3", "EGL_BAD_PARAMETER is generated if num_config is NULL"); in init()
282 log << TestLog::EndSection; in init()
290 TestLog& log = m_testCtx.getLog(); in init()
293log << TestLog::Section("Test1", "EGL_BAD_DISPLAY is generated if display is not an EGL display co… in init()
298 expectNoContext(eglCreateContext((EGLDisplay)-1, DE_NULL, EGL_NO_CONTEXT, s_emptyAttribList)); in init()
301 log << TestLog::EndSection; in init()
303log << TestLog::Section("Test2", "EGL_BAD_CONFIG is generated if config is not an EGL frame buffer… in init()
305 expectNoContext(eglCreateContext(display, (EGLConfig)-1, EGL_NO_CONTEXT, s_emptyAttribList)); in init()
308 log << TestLog::EndSection; in init()
310log << TestLog::Section("Test3", "EGL_BAD_CONFIG is generated if config does not support the curre… in init()
385 log << TestLog::EndSection; in init()
387log << TestLog::Section("Test4", "EGL_BAD_CONFIG or EGL_BAD_MATCH is generated if OpenGL ES 1.x co… in init()
412 log << TestLog::EndSection; in init()
414log << TestLog::Section("Test5", "EGL_BAD_CONFIG or EGL_BAD_MATCH is generated if OpenGL ES 2.x co… in init()
439 log << TestLog::EndSection; in init()
441log << TestLog::Section("Test6", "EGL_BAD_ATTRIBUTE is generated if attrib_list contains an invali… in init()
483 log << TestLog::EndSection; in init()
488 TestLog& log = m_testCtx.getLog(); in init()
493log << TestLog::Section("Test1", "EGL_BAD_DISPLAY is generated if display is not an EGL display co… in init()
498 …expectNoSurface(eglCreatePbufferFromClientBuffer((EGLDisplay)-1, EGL_OPENVG_IMAGE, 0, (EGLConfig)0… in init()
501 log << TestLog::EndSection; in init()
505log << TestLog::Section("Test2", "EGL_BAD_CONFIG or EGL_BAD_PARAMETER is generated if config is no… in init()
507 …tePbufferFromClientBuffer(display, EGL_OPENVG_IMAGE, (EGLClientBuffer)-1, (EGLConfig)-1, DE_NULL)); in init()
510 log << TestLog::EndSection; in init()
512log << TestLog::Section("Test3", "EGL_BAD_PARAMETER is generated if buftype is not EGL_OPENVG_IMAG… in init()
516 log << TestLog::EndSection; in init()
518log << TestLog::Section("Test4", "EGL_BAD_PARAMETER is generated if buffer is not valid OpenVG ima… in init()
519 …expectNoSurface(eglCreatePbufferFromClientBuffer(display, EGL_OPENVG_IMAGE, (EGLClientBuffer)-1, a… in init()
522 log << TestLog::EndSection; in init()
528 static const EGLint s_negativeWidthPbufferAttrib[] = { EGL_WIDTH, -1, EGL_HEIGHT, 64, EGL_NONE }; in init()
529 static const EGLint s_negativeHeightPbufferAttrib[] = { EGL_WIDTH, 64, EGL_HEIGHT, -1, EGL_NONE }; in init()
530 …static const EGLint s_negativeWidthAndHeightPbufferAttrib[] = { EGL_WIDTH, -1, EGL_HEIGHT, -1, EGL… in init()
560 TestLog& log = m_testCtx.getLog(); in init()
563log << TestLog::Section("Test1", "EGL_BAD_DISPLAY is generated if display is not an EGL display co… in init()
568 expectNoSurface(eglCreatePbufferSurface((EGLDisplay)-1, DE_NULL, s_emptyAttribList)); in init()
571 log << TestLog::EndSection; in init()
573log << TestLog::Section("Test2", "EGL_BAD_CONFIG is generated if config is not an EGL frame buffer… in init()
575 expectNoSurface(eglCreatePbufferSurface(display, (EGLConfig)-1, s_emptyAttribList)); in init()
578 log << TestLog::EndSection; in init()
580log << TestLog::Section("Test3", "EGL_BAD_ATTRIBUTE is generated if attrib_list contains an invali… in init()
582 // Generic pbuffer-capable config in init()
593 log << TestLog::EndSection; in init()
595log << TestLog::Section("Test4", "EGL_BAD_MATCH is generated if config does not support rendering … in init()
604 log << TestLog::EndSection; in init()
606log << TestLog::Section("Test5", "EGL_BAD_ATTRIBUTE is generated if attrib_list contains any of th… in init()
618 log << TestLog::EndSection; in init()
620log << TestLog::Section("Test6", "EGL_BAD_MATCH is generated if the EGL_TEXTURE_FORMAT attribute i… in init()
635 log << TestLog::EndSection; in init()
637log << TestLog::Section("Test7", "EGL_BAD_MATCH is generated if config does not support the specif… in init()
653 log << TestLog::EndSection; in init()
655log << TestLog::Section("Test8", "EGL_BAD_PARAMETER is generated if EGL_WIDTH or EGL_HEIGHT is neg… in init()
669 log << TestLog::EndSection; in init()
675 TestLog& log = m_testCtx.getLog(); in init()
678log << TestLog::Section("Test1", "EGL_BAD_DISPLAY is generated if display is not an EGL display co… in init()
683 expectNoSurface(eglCreatePixmapSurface((EGLDisplay)-1, DE_NULL, DE_NULL, s_emptyAttribList)); in init()
686 log << TestLog::EndSection; in init()
688log << TestLog::Section("Test2", "EGL_BAD_CONFIG or EGL_BAD_PARAMETER is generated if config is no… in init()
690 expectNoSurface(eglCreatePixmapSurface(display, (EGLConfig)-1, DE_NULL, s_emptyAttribList)); in init()
693 log << TestLog::EndSection; in init()
703 TestLog& log = m_testCtx.getLog(); in init()
708log << TestLog::Section("Test1", "EGL_BAD_DISPLAY is generated if display is not an EGL display co… in init()
710 …expectNoSurface(eglCreateWindowSurface(EGL_NO_DISPLAY, config, window->getLegacyNative(), s_emptyA… in init()
713 …expectNoSurface(eglCreateWindowSurface((EGLDisplay)-1, config, window->getLegacyNative(), s_emptyA… in init()
716 log << TestLog::EndSection; in init()
722 TestLog& log = m_testCtx.getLog(); in init()
725log << TestLog::Section("Test1", "EGL_BAD_DISPLAY is generated if display is not an EGL display co… in init()
730 expectFalse(eglDestroyContext((EGLDisplay)-1, DE_NULL)); in init()
733 log << TestLog::EndSection; in init()
735log << TestLog::Section("Test2", "EGL_BAD_CONTEXT is generated if context is not an EGL rendering … in init()
740 expectFalse(eglDestroyContext(display, (EGLContext)-1)); in init()
743 log << TestLog::EndSection; in init()
748 TestLog& log = m_testCtx.getLog(); in init()
751log << TestLog::Section("Test1", "EGL_BAD_DISPLAY is generated if display is not an EGL display co… in init()
756 expectFalse(eglDestroySurface((EGLDisplay)-1, DE_NULL)); in init()
759 log << TestLog::EndSection; in init()
761log << TestLog::Section("Test2", "EGL_BAD_SURFACE is generated if surface is not an EGL surface"); in init()
766 expectFalse(eglDestroySurface(display, (EGLSurface)-1)); in init()
769 log << TestLog::EndSection; in init()
774 TestLog& log = m_testCtx.getLog(); in init()
778log << TestLog::Section("Test1", "EGL_BAD_DISPLAY is generated if display is not an EGL display co… in init()
783 expectFalse(eglGetConfigAttrib((EGLDisplay)-1, DE_NULL, EGL_RED_SIZE, &value)); in init()
786 log << TestLog::EndSection; in init()
788log << TestLog::Section("Test2", "EGL_BAD_CONFIG is generated if config is not an EGL frame buffer… in init()
790 expectFalse(eglGetConfigAttrib(display, (EGLConfig)-1, EGL_RED_SIZE, &value)); in init()
793 log << TestLog::EndSection; in init()
799log << TestLog::Section("Test3", "EGL_BAD_ATTRIBUTE is generated if attribute is not a valid frame… in init()
806 expectFalse(eglGetConfigAttrib(display, config, -1, &value)); in init()
810 log << TestLog::EndSection; in init()
815 TestLog& log = m_testCtx.getLog(); in init()
820log << TestLog::Section("Test1", "EGL_BAD_DISPLAY is generated if display is not an EGL display co… in init()
825 expectFalse(eglGetConfigs((EGLDisplay)-1, &cfgs[0], DE_LENGTH_OF_ARRAY(cfgs), &numCfgs)); in init()
828 log << TestLog::EndSection; in init()
830 log << TestLog::Section("Test2", "EGL_BAD_PARAMETER is generated if num_config is NULL"); in init()
835 log << TestLog::EndSection; in init()
840 TestLog& log = m_testCtx.getLog(); in init()
844log << TestLog::Section("Test1", "EGL_BAD_DISPLAY is generated if display is not an EGL display co… in init()
849 expectFalse(eglInitialize((EGLDisplay)-1, &major, &minor)); in init()
852 log << TestLog::EndSection; in init()
857 TestLog& log = m_testCtx.getLog(); in init()
860log << TestLog::Section("Test1", "EGL_BAD_DISPLAY is generated if display is not an EGL display co… in init()
865 expectFalse(eglMakeCurrent((EGLDisplay)-1, DE_NULL, DE_NULL, DE_NULL)); in init()
868 log << TestLog::EndSection; in init()
894log << TestLog::Section("Test2", "EGL_BAD_SURFACE is generated if surface is not an EGL surface"); in init()
896 expectFalse(eglMakeCurrent(display, (EGLSurface)-1, (EGLSurface)-1, context)); in init()
899 expectFalse(eglMakeCurrent(display, surface, (EGLSurface)-1, context)); in init()
902 expectFalse(eglMakeCurrent(display, (EGLSurface)-1, surface, context)); in init()
905 log << TestLog::EndSection; in init()
910log << TestLog::Section("Test3", "EGL_BAD_CONTEXT is generated if context is not an EGL rendering … in init()
912 expectFalse(eglMakeCurrent(display, surface, surface, (EGLContext)-1)); in init()
915 log << TestLog::EndSection; in init()
920log << TestLog::Section("Test4", "EGL_BAD_MATCH is generated if read or draw surface is not EGL_NO… in init()
931 log << TestLog::EndSection; in init()
963 TestLog& log = m_testCtx.getLog(); in init()
985log << TestLog::Section("Test1", "EGL_BAD_PARAMETER is generated if readdraw is neither EGL_READ n… in init()
990 log << TestLog::EndSection; in init()
1011 TestLog& log = m_testCtx.getLog(); in init()
1015log << TestLog::Section("Test1", "EGL_BAD_DISPLAY is generated if display is not an EGL display co… in init()
1020 expectFalse(eglQueryContext((EGLDisplay)-1, DE_NULL, EGL_CONFIG_ID, &value)); in init()
1023 log << TestLog::EndSection; in init()
1025log << TestLog::Section("Test2", "EGL_BAD_CONTEXT is generated if context is not an EGL rendering … in init()
1033 log << TestLog::EndSection; in init()
1049log << TestLog::Section("Test3", "EGL_BAD_ATTRIBUTE is generated if attribute is not a valid conte… in init()
1055 expectFalse(eglQueryContext(display, context, -1, &value)); in init()
1061 log << TestLog::EndSection; in init()
1072 TestLog& log = m_testCtx.getLog(); in init()
1075log << TestLog::Section("Test1", "EGL_BAD_DISPLAY is generated if display is not an EGL display co… in init()
1080 expectNull(eglQueryString((EGLDisplay)-1, EGL_VENDOR)); in init()
1083 log << TestLog::EndSection; in init()
1085log << TestLog::Section("Test2", "EGL_BAD_PARAMETER is generated if name is not an accepted value"… in init()
1089 expectNull(eglQueryString(display, -1)); in init()
1092 log << TestLog::EndSection; in init()
1097 TestLog& log = m_testCtx.getLog(); in init()
1101log << TestLog::Section("Test1", "EGL_BAD_DISPLAY is generated if display is not an EGL display co… in init()
1106 expectFalse(eglQuerySurface((EGLDisplay)-1, DE_NULL, EGL_CONFIG_ID, &value)); in init()
1109 log << TestLog::EndSection; in init()
1111log << TestLog::Section("Test2", "EGL_BAD_SURFACE is generated if surface is not an EGL surface"); in init()
1116 expectFalse(eglQuerySurface(display, (EGLSurface)-1, EGL_CONFIG_ID, &value)); in init()
1119 log << TestLog::EndSection; in init()
1131log << TestLog::Message << "// WARNING: No suitable config found, testing will be incomplete" << T… in init()
1134log << TestLog::Section("Test3", "EGL_BAD_ATTRIBUTE is generated if attribute is not a valid surfa… in init()
1141 expectFalse(eglQuerySurface(display, surface, -1, &value)); in init()
1145 log << TestLog::EndSection; in init()
1156 TestLog& log = m_testCtx.getLog(); in init()
1159log << TestLog::Section("Test1", "EGL_BAD_DISPLAY is generated if display is not an EGL display co… in init()
1164 expectFalse(eglReleaseTexImage((EGLDisplay)-1, EGL_NO_SURFACE, EGL_BACK_BUFFER)); in init()
1167 log << TestLog::EndSection; in init()
1169log << TestLog::Section("Test2", "EGL_BAD_SURFACE is generated if surface is not an EGL surface"); in init()
1174 expectFalse(eglReleaseTexImage(display, (EGLSurface)-1, EGL_BACK_BUFFER)); in init()
1177 log << TestLog::EndSection; in init()
1182 TestLog& log = m_testCtx.getLog(); in init()
1185log << TestLog::Section("Test1", "EGL_BAD_DISPLAY is generated if display is not an EGL display co… in init()
1190 expectFalse(eglSurfaceAttrib((EGLDisplay)-1, DE_NULL, EGL_SWAP_BEHAVIOR, EGL_BUFFER_DESTROYED)); in init()
1193 log << TestLog::EndSection; in init()
1195log << TestLog::Section("Test2", "EGL_BAD_SURFACE is generated if surface is not an EGL surface"); in init()
1200 expectFalse(eglSurfaceAttrib(display, (EGLSurface)-1, EGL_SWAP_BEHAVIOR, EGL_BUFFER_DESTROYED)); in init()
1203 log << TestLog::EndSection; in init()
1216log << TestLog::Message << "// WARNING: No suitable config found, testing will be incomplete" << T… in init()
1219log << TestLog::Section("Test3", "EGL_BAD_ATTRIBUTE is generated if attribute is not a valid surfa… in init()
1226 expectFalse(eglSurfaceAttrib(display, surface, -1, 0)); in init()
1230 log << TestLog::EndSection; in init()
1250log << TestLog::Message << "// WARNING: No suitable config found, testing will be incomplete" << T… in init()
1253log << TestLog::Section("Test4", "EGL_BAD_MATCH is generated if attribute is EGL_MULTISAMPLE_RESOL… in init()
1261 log << TestLog::EndSection; in init()
1281log << TestLog::Message << "// WARNING: No suitable config found, testing will be incomplete" << T… in init()
1284log << TestLog::Section("Test5", "EGL_BAD_MATCH is generated if attribute is EGL_SWAP_BEHAVIOR, va… in init()
1292 log << TestLog::EndSection; in init()
1304 TestLog& log = m_testCtx.getLog(); in init()
1307log << TestLog::Section("Test1", "EGL_BAD_DISPLAY is generated if display is not an EGL display co… in init()
1312 expectFalse(eglSwapBuffers((EGLDisplay)-1, DE_NULL)); in init()
1315 log << TestLog::EndSection; in init()
1317log << TestLog::Section("Test2", "EGL_BAD_SURFACE is generated if surface is not an EGL surface"); in init()
1322 expectFalse(eglSwapBuffers(display, (EGLSurface)-1)); in init()
1325 log << TestLog::EndSection; in init()
1330 TestLog& log = m_testCtx.getLog(); in init()
1333log << TestLog::Section("Test1", "EGL_BAD_DISPLAY is generated if display is not an EGL display co… in init()
1338 expectFalse(eglSwapInterval((EGLDisplay)-1, 0)); in init()
1341 log << TestLog::EndSection; in init()
1343log << TestLog::Section("Test2", "EGL_BAD_CONTEXT is generated if there is no current context on t… in init()
1348 log << TestLog::EndSection; in init()
1353 TestLog& log = m_testCtx.getLog(); in init()
1355log << TestLog::Section("Test1", "EGL_BAD_DISPLAY is generated if display is not an EGL display co… in init()
1360 expectFalse(eglTerminate((EGLDisplay)-1)); in init()
1363 log << TestLog::EndSection; in init()
1373 TestLog& log = m_testCtx.getLog(); in init()
1390log << TestLog::Section("Test1", "EGL_BAD_PARAMETER is generated if engine is not a recognized mar… in init()
1392 eglWaitNative(-1); in init()
1395 log << TestLog::EndSection; in init()