[Mesa-dev] [PATCH 0/5] EGL_ANDROID_blob_cache

Tapani Pälli tapani.palli at intel.com
Mon Jan 22 13:00:32 UTC 2018


Another go at EGL_ANDROID_blob_cache, some patches are re-sent but I 
thought it would be easier to read when sending all patches at once.

Most important change here is that I've done refactoring to disk cache 
so that it can live without path/index. Path will get generated only 
when cache is actually used. This makes it possible to implement 
disk_cache_has_key and disk_cache_put_key for EGL_ANDROID_blob_cache.

This functionality can be tested on desktop with any EGL app using this
branch:

https://cgit.freedesktop.org/~tpalli/mesa/log/?h=ANDROID_blob_cache_debug_v2

I've tested regular disk cache and blob cache on desktop with these 
changes, and blob cache functionality on Android.

Thanks;

Tapani Pälli (5):
  dri: add interface for EGL_ANDROID_blob_cache extension
  egl: add support for EGL_ANDROID_blob_cache
  disk cache: initialize cache path and index only when used
  disk cache: add callback functionality
  i965: add __DRI2_BLOB support and set cache functions

 include/GL/internal/dri_interface.h      |  26 ++++-
 src/egl/drivers/dri2/egl_dri2.c          |  39 ++++++++
 src/egl/drivers/dri2/egl_dri2.h          |   1 +
 src/egl/main/eglapi.c                    |  30 ++++++
 src/egl/main/eglapi.h                    |   4 +
 src/egl/main/egldisplay.h                |   4 +
 src/egl/main/eglentrypoint.h             |   1 +
 src/mesa/drivers/dri/i965/intel_screen.c |  21 ++++
 src/util/disk_cache.c                    | 163 +++++++++++++++++++++++--------
 src/util/disk_cache.h                    |  19 ++++
 10 files changed, 266 insertions(+), 42 deletions(-)

-- 
2.14.3



More information about the mesa-dev mailing list