egl/android: enable/disable KHR_partial_update correctly
authorChia-I Wu <olvaffe@gmail.com>
Wed, 18 Mar 2020 19:50:31 +0000 (12:50 -0700)
committerChia-I Wu <olvaffe@gmail.com>
Mon, 23 Mar 2020 23:22:24 +0000 (16:22 -0700)
commitd63d0006860ac079f411c1f0d81101741a22af10
treeda95dd41cb65e3bc0dabe050f66a80007ce62b49
parent41412cc4b74e0b4b16f09df8c716adc57df851d7
egl/android: enable/disable KHR_partial_update correctly

Commit f3728816af (egl/android: require ANDROID_native_fence_sync
for buffer age) re-added some stale code removed in commit
b4345da8762 (egl/android: Delete set_damage_region from egl dri
vtbl).  Remove it now.

Commit b4345da8762 assumes KHR_partial_update is only
driver-dependent.  That is mostly true except that the extension
also introduces buffer age query, which depends on
ANDROID_native_fence_sync on Android.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Lepton Wu <lepton@chromium.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4235>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4235>
src/egl/drivers/dri2/platform_android.c