Skip to content
Commit 87efbe48 authored by Nataraj Deshpande's avatar Nataraj Deshpande Committed by Juan A. Suarez Romero
Browse files

egl/android: Update color_buffers querying for buffer age



color_buffers[] is currently hard coded to 3 for android which fails
in droid_window_dequeue_buffer when ANativeWindow creates color_buffers
>3 while querying buffer age during dEQP partial_update tests on chromeOS.

The patch removes static color_buffers[], queries for MIN_UNDEQUEUED_BUFFERS,
sets native window buffer count and allocates the correct number of
color_buffers as per android.

Fixes dEQP-EGL.functional.partial_update* tests on chromebooks with
enabling EGL_KHR_partial_update.

v2: update comment instead of removing (Eric Engestrom)
v3: change static array to dynamic allocated color_buffers
    querying MIN_UNDEQUEUED_BUFFERS (Chia-I Wu olv@chromium.org)

Fixes: 2acc69da "EGL/Android: Add EGL_EXT_buffer_age extension"
Signed-off-by: default avatarNataraj Deshpande <nataraj.deshpande@intel.com>
Acked-by: default avatarEric Engestrom <eric@engestrom.ch>
Reviewed-by: default avatarChia-I Wu <olvaffe@gmail.com>
(cherry picked from commit 0661c357)
parent e1800b20
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment