egl/android: Implement EGL_KHR_mutable_render_buffer
authorChad Versace <chadversary@chromium.org>
Tue, 1 May 2018 05:35:17 +0000 (22:35 -0700)
committerChad Versace <chadversary@chromium.org>
Tue, 21 Aug 2018 16:56:20 +0000 (09:56 -0700)
commited7c694688a527708ef2e0c34a9a106fe59c1ada
tree871bfe1b66d00660e141325dc8cfe4ffe69f1bcd
parent317c460a4dfda3946182ad45a8828571a8cdd872
egl/android: Implement EGL_KHR_mutable_render_buffer

Specifically, implement the extension DRI_MutableRenderBufferLoader.
However, the loader enables EGL_KHR_mutable_render_buffer only if the
DRI driver implements its half of the extension,
DRI_MutableRenderBufferDriver.

Testing:
  - No change in dEQP-EGL.functional.* on Fedora 27, Wayland, Skylake
    GT2.  Used deqp at tag android-p-preview-5.
  - No change in dEQP-EGL.functional.*, ran on Android on Chrome OS,
    Kabylake GT2.
  - Manually inspected Android apps on same Chrome OS device.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/dri2/egl_dri2.h
src/egl/drivers/dri2/platform_android.c