Re: [Mesa-dev] EGL: Question about deferred context and surface destroy

2017-05-01 Thread Mike Gorchak
Hi Tapani, Thank you very much for this explanation! All is clear now, and you are right about function description, they have to be a bit more detailed regarding this. As far as I understood there is a huge GPS navigation framework which depends on wrong behavior regarding deferred context and

Re: [Mesa-dev] EGL: Question about deferred context and surface destroy

2017-04-27 Thread Tapani Pälli
On 04/28/2017 08:08 AM, Tapani Pälli wrote: On 04/28/2017 08:05 AM, Tapani Pälli wrote: On 04/27/2017 06:59 PM, Mike Gorchak wrote: Hi Tapani, Could you please do modification like I suggested to eglut library and check how it is going? I'm asking because I see following code:

Re: [Mesa-dev] EGL: Question about deferred context and surface destroy

2017-04-27 Thread Tapani Pälli
On 04/28/2017 08:05 AM, Tapani Pälli wrote: On 04/27/2017 06:59 PM, Mike Gorchak wrote: Hi Tapani, Could you please do modification like I suggested to eglut library and check how it is going? I'm asking because I see following code: EGLBoolean EGLAPIENTRY eglDestroySurface(EGLDisplay

Re: [Mesa-dev] EGL: Question about deferred context and surface destroy

2017-04-27 Thread Tapani Pälli
On 04/27/2017 06:59 PM, Mike Gorchak wrote: Hi Tapani, Could you please do modification like I suggested to eglut library and check how it is going? I'm asking because I see following code: EGLBoolean EGLAPIENTRY eglDestroySurface(EGLDisplay dpy, EGLSurface surface) { _EGLDisplay

Re: [Mesa-dev] EGL: Question about deferred context and surface destroy

2017-04-27 Thread Mike Gorchak
Hi Tapani, Could you please do modification like I suggested to eglut library and check how it is going? I'm asking because I see following code: EGLBoolean EGLAPIENTRY eglDestroySurface(EGLDisplay dpy, EGLSurface surface) { _EGLDisplay *disp = _eglLockDisplay(dpy); _EGLSurface *surf =

Re: [Mesa-dev] EGL: Question about deferred context and surface destroy

2017-04-27 Thread Tapani Pälli
On 04/26/2017 05:08 PM, Mike Gorchak wrote: Hi Tapani, Sure, I can share them, but they are QNX based. And as far as I remember it was an issue in the past :) I thought to ask because there are some multithread dEQP EGL tests around this and they are passing at the moment. Surface and

Re: [Mesa-dev] EGL: Question about deferred context and surface destroy

2017-04-26 Thread Mike Gorchak
Hi Tapani, Sure, I can share them, but they are QNX based. And as far as I remember it was an issue in the past :) I think the simplest way for you is to add following calls to function eglutCreateWindow(): https://cgit.freedesktop.org/mesa/demos/tree/src/egl/eglut/eglut.c#n321 if

Re: [Mesa-dev] EGL: Question about deferred context and surface destroy

2017-04-26 Thread Tapani Pälli
On 04/25/2017 10:20 PM, Mike Gorchak wrote: Hi all, During a quick tests of latest Mesa3D versions at different branches 12.x, 13.x, 17.x we have found that deferred context and surface destroy doesn't work properly. What kind of test case are you using, could you share this? According

[Mesa-dev] EGL: Question about deferred context and surface destroy

2017-04-25 Thread Mike Gorchak
Hi all, During a quick tests of latest Mesa3D versions at different branches 12.x, 13.x, 17.x we have found that deferred context and surface destroy doesn't work properly. According to docs: https://www.khronos.org/registry/EGL/sdk/docs/man/html/eglDestroySurface.xhtml Description If the EGL