egl/android: Restrict minimum triple buffering for android color_buffers
authorNataraj Deshpande <nataraj.deshpande@intel.com>
Fri, 10 Jan 2020 16:58:00 +0000 (08:58 -0800)
committerMarge Bot <eric+marge@anholt.net>
Wed, 15 Jan 2020 09:42:08 +0000 (09:42 +0000)
commitbe08e6a4496aad219df1fd829fca3e4f7b322538
treec7eb3716077b407d5960b3f2f5a115ddaaaf127b
parenta01410549807cc4db6fc5fe10c47649cde1fe3fc
egl/android: Restrict minimum triple buffering for android color_buffers

The patch restricts triple buffering as minimum at driver for android
color_buffers in order to fix onscreen performance hit for T-Rex and
Manhattan.

v2: Update min_buffer check condition (Tapani Pälli)
v3: further code cleanup (Eric Engestrom)

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2332
Fixes: 0661c357c60 ("egl/android: Update color_buffers querying for buffer age")
Signed-off-by: Nataraj Deshpande <nataraj.deshpande@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3384>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3384>
src/egl/drivers/dri2/platform_android.c