[Mesa-dev] [PATCH v2 0/9] GBM map/unmap support

Rob Herring robh at kernel.org
Wed May 4 02:02:38 UTC 2016


This series adds map and unmap functions to GBM. These are needed to
provide a device independent buffer allocation interface to Android's
gralloc.

Open questions:
- Need to flush context on unmap?
- Need fences for gralloc lockAsync support?

Major changes from v1[1]:
- Further split up patches
- Make READ flag optional
- Move context creation to GBM map function
- Improve documentation comments

Major changes from RFC[2]:
- Split up patches
- Consistently use map instead of lock for function names
- Clean up and propogate mapping usage flags
- Add extension version checking
- Add returned stride for mapped buffer
- Got rid of pipe_private ptr passing it back to caller instead
- Move context creation to gbm_device_create and add destroyContext call
- Add/fix function comments

Rob

[1] https://patchwork.freedesktop.org/series/6179/
[2] https://patchwork.freedesktop.org/patch/78908/

Rob Herring (9):
  Android: Move setting DEFAULT_DRIVER_DIR to shared location
  gbm: split out source file to Makefile.sources
  gbm: add Android gallium_dri.so library loading support
  gbm: Add Android build support
  DRI: Add DRIimage map and unmap functions
  st/dri: Add support for DRIimage extension mapImage/unmapImage
  gbm: rename gbm_dri_bo_{map,unmap} to gbm_dri_bo_{map,unmap}_dumb
  configure.ac: add pthreadstubs support
  gbm: Add map/unmap functions

 Android.common.mk                     |  7 ++++
 Android.mk                            |  1 +
 configure.ac                          |  4 ++
 include/GL/internal/dri_interface.h   | 34 +++++++++++++++-
 src/egl/Android.mk                    |  7 ----
 src/gallium/state_trackers/dri/dri2.c | 43 +++++++++++++++++++-
 src/gbm/Android.mk                    | 44 ++++++++++++++++++++
 src/gbm/Makefile.am                   | 18 ++++-----
 src/gbm/Makefile.sources              | 12 ++++++
 src/gbm/backends/dri/gbm_dri.c        | 75 ++++++++++++++++++++++++++++++++++-
 src/gbm/backends/dri/gbm_driint.h     |  7 +++-
 src/gbm/gbm-symbols-check             |  2 +
 src/gbm/main/gbm.c                    | 53 +++++++++++++++++++++++++
 src/gbm/main/gbm.h                    | 35 ++++++++++++++++
 src/gbm/main/gbmint.h                 |  6 +++
 15 files changed, 325 insertions(+), 23 deletions(-)
 create mode 100644 src/gbm/Android.mk
 create mode 100644 src/gbm/Makefile.sources

--
2.7.4



More information about the mesa-dev mailing list