egl/android: handle multi-fd native windows
authorRob Clark <robdclark@chromium.org>
Fri, 12 Jul 2019 16:17:30 +0000 (09:17 -0700)
committerRob Clark <robdclark@gmail.com>
Tue, 16 Jul 2019 18:14:44 +0000 (18:14 +0000)
commita9f34b563189072a4830fe07fe034e902a7d48f2
tree8f63b7938edcb3ef836446c3f2da24c23264641c
parent110669c85c3fcfed0a4dff42a36fc3f97c5a559a
egl/android: handle multi-fd native windows

We can hit multi-fd EGL_NATIVE_BUFFER_ANDROID case when the native
android buffer is YUV.  So we need to handle that.

Currently this went unnoticed because, even though we have two or
three fd's for YUV native android buffers, they all reference the
same backing buffer.  But we really shouldn't rely on that.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/egl/drivers/dri2/platform_android.c