[Mesa-dev] [PATCH] egl/wayland: Ensure we get a back buffer

Daniel Stone daniel at fooishbar.org
Thu May 18 17:06:12 UTC 2017


Hi Emil,

On 18 May 2017 at 17:22, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> On 16 May 2017 at 11:02, Daniel Stone <daniels at collabora.com> wrote:
>> Ideally get_back_bo() failing should store a failure flag inside the
>> surface and cause the next SwapBuffers to fail, but for the meantime,
>> restore the correct behaviour such that get_back_bo() no longer fails.
> JFYI, we already have the egl/main plumbing and egl/android support. See commits
>
> 23c86c74cc450a23848b85cfe914376caede1cdf
> 0212db350407e1331ff23f04136684cf2b7396cf
> e5eace586848511f4ceaffaa2d45131c31c45ae0

Fair enough. My thought was just to fail SwapBuffers, because failure
to acquire one image doesn't necessarily mean we'll never be able to
acquire any more images in future. It's also EGL_BAD_ALLOC rather than
EGL_BAD_NATIVE_WINDOW ...

Cheers,
Daniel


More information about the mesa-dev mailing list