[PATCH 0/4] drm: Add GEM backed framebuffer library

Noralf Trønnes noralf at tronnes.org
Mon Jul 31 18:42:13 UTC 2017


This adds helpers for drivers that don't subclass drm_framebuffer and
are backed by drm_gem_object(s). drm_fb_cma_helper is converted to use
the helpers.

This patchset is part of a process to add a shmem gem library like the
cma library. The common parts between the two goes into core or helpers.

I haven't pushed the helpers all the way out to the cma using drivers.
This project has fanned out enough already.

Noralf.

Noralf Trønnes (4):
  drm: Add GEM backed framebuffer library
  drm/fb-cma-helper: Use drm_gem_framebuffer_helper
  drm/tinydrm: Use drm_gem_framebuffer_helper
  drm/fb-cma-helper: Remove drm_framebuffer_funcs helpers

 Documentation/gpu/drm-kms-helpers.rst        |   9 +
 drivers/gpu/drm/Makefile                     |   2 +-
 drivers/gpu/drm/drm_fb_cma_helper.c          | 181 +++----------------
 drivers/gpu/drm/drm_gem_framebuffer_helper.c | 252 +++++++++++++++++++++++++++
 drivers/gpu/drm/tinydrm/core/tinydrm-core.c  |   3 +-
 drivers/gpu/drm/tinydrm/mipi-dbi.c           |   5 +-
 drivers/gpu/drm/tinydrm/repaper.c            |   5 +-
 include/drm/drm_fb_cma_helper.h              |   4 -
 include/drm/drm_framebuffer.h                |   4 +
 include/drm/drm_gem_framebuffer_helper.h     |  35 ++++
 10 files changed, 337 insertions(+), 163 deletions(-)
 create mode 100644 drivers/gpu/drm/drm_gem_framebuffer_helper.c
 create mode 100644 include/drm/drm_gem_framebuffer_helper.h

-- 
2.7.4



More information about the dri-devel mailing list