MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetOpenGlErrors

Function GetOpenGlErrors

tensorflow/lite/delegates/gpu/gl/gl_errors.cc:61–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59// TODO(akulik): create new error space for GL error.
60
61Status GetOpenGlErrors() {
62 auto error = glGetError();
63 if (error == GL_NO_ERROR) {
64 return OkStatus();
65 }
66 auto error2 = glGetError();
67 if (error2 == GL_NO_ERROR) {
68 return InternalError(ErrorToString(error));
69 }
70 std::vector<GLenum> errors = {error, error2};
71 for (error = glGetError(); error != GL_NO_ERROR; error = glGetError()) {
72 errors.push_back(error);
73 }
74 return InternalError(absl::StrJoin(errors, ",", ErrorFormatter()));
75}
76
77Status GetEglError() {
78 EGLint error = eglGetError();

Callers 9

RequestGpuInfoFunction · 0.85
GlSyncWaitFunction · 0.85
GlActiveSyncWaitFunction · 0.85
GetConfigFunction · 0.85
CreateContextFunction · 0.85
MakeCurrentMethod · 0.85
CreatePbufferRGBSurfaceFunction · 0.85
MappedReadMethod · 0.85
MappedWriteMethod · 0.85

Calls 5

OkStatusFunction · 0.85
ErrorToStringFunction · 0.85
ErrorFormatterClass · 0.85
InternalErrorFunction · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected