Re: [Mesa-dev] [PATCH] egl/dri2: try to bind old context if bindContext failed

2019-01-23 Thread Luigi Santivetti
Thanks for reviewing this Frank. I'd wait some more for any further comments before uploading a v2. Frank Binns writes: > Hi Luigi, > > Luigi Santivetti writes: > >> Before this change, if bindContext() failed then dri2_make_current() would >> rebind the old EGL context and surfaces and return

Re: [Mesa-dev] [PATCH] egl/dri2: try to bind old context if bindContext failed

2019-01-22 Thread Frank Binns
Hi Luigi, Luigi Santivetti writes: > Before this change, if bindContext() failed then dri2_make_current() would > rebind the old EGL context and surfaces and return EGL_BAD_MATCH. However, > it wouldn't rebind the DRI context and surfaces, thus leaving it in an > inconsistent and unrecoverable s

[Mesa-dev] [PATCH] egl/dri2: try to bind old context if bindContext failed

2019-01-18 Thread Luigi Santivetti
Before this change, if bindContext() failed then dri2_make_current() would rebind the old EGL context and surfaces and return EGL_BAD_MATCH. However, it wouldn't rebind the DRI context and surfaces, thus leaving it in an inconsistent and unrecoverable state. After this change, dri2_make_current()