Re: [Mesa-dev] [PATCH 4/6] EGL: Call the EGL_KHR_debug callback on errors.

2016-09-06 Thread Kyle Brenneman
The patch also changes _eglDebugReport so that it calls _eglInternalError at the end instead of _eglError. -Kyle On 09/06/2016 01:53 PM, Adam Jackson wrote: On Wed, 2016-07-06 at 10:33 -0600, Kyle Brenneman wrote: @@ -292,6 +292,24 @@ _eglError(EGLint errCode, const char *msg) return EG

Re: [Mesa-dev] [PATCH 4/6] EGL: Call the EGL_KHR_debug callback on errors.

2016-09-06 Thread Adam Jackson
On Wed, 2016-07-06 at 10:33 -0600, Kyle Brenneman wrote: > @@ -292,6 +292,24 @@ _eglError(EGLint errCode, const char *msg) > return EGL_FALSE; >  } >   > +EGLBoolean > +_eglError(EGLint errCode, const char *msg) > +{ > +   if (errCode != EGL_SUCCESS) { > +  EGLint type; > +  if (errCod

[Mesa-dev] [PATCH 4/6] EGL: Call the EGL_KHR_debug callback on errors.

2016-07-06 Thread Kyle Brenneman
Added a member to _EGLThreadInfo to hold the name of the current EGL function. Each EGL entrypoint will now set that at the beginning. _eglError will now call the debug callback function, using the function name stored in the current _EGLThreadInfo struct. This should allow the EGL_KHR_debug call