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

Rob Herring robh at kernel.org
Fri Apr 22 15:50:14 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.

Major changes from RFC[1]:
- 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

Open questions:
- Is creating a context internally in GBM okay? Does it need special 
  flags for context creation? 
- Need to flush context on unmap?
- Need fences for gralloc lockAsync support? 

Rob

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

Rob Herring (4):
  gbm: Add Android build support
  DRI: Add DRIimage map and unmap functions
  st/dri: Add support for DRIimage extension mapImage/unmapImage
  gbm: Add map/unmap functions

 Android.mk                            |  1 +
 include/GL/internal/dri_interface.h   | 24 +++++++++++-
 src/gallium/state_trackers/dri/dri2.c | 41 +++++++++++++++++++-
 src/gbm/Android.mk                    | 51 +++++++++++++++++++++++++
 src/gbm/Makefile.am                   | 10 +----
 src/gbm/Makefile.sources              | 12 ++++++
 src/gbm/backends/dri/gbm_dri.c        | 71 ++++++++++++++++++++++++++++++++++-
 src/gbm/backends/dri/gbm_driint.h     |  5 ++-
 src/gbm/gbm-symbols-check             |  2 +
 src/gbm/main/gbm.c                    | 51 +++++++++++++++++++++++++
 src/gbm/main/gbm.h                    | 25 ++++++++++++
 src/gbm/main/gbmint.h                 |  6 +++
 12 files changed, 285 insertions(+), 14 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