All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Prime helpers
@ 2012-12-06 18:07 Aaron Plattner
  2012-12-06 18:07 ` [PATCH 1/4] drm: add prime helpers Aaron Plattner
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Aaron Plattner @ 2012-12-06 18:07 UTC (permalink / raw)
  To: dri-devel, Jerome Glisse, David Airlie

This series adds helper functions that abstract the core parts of
.gem_prime_import and .gem_prime_export so that drivers don't have to worry
about the low-level details.  These helpers are optional.  A driver can use them
by plugging in drm_gem_prime_import and drm_gem_prime_export into the drm_driver
structure, or it can bypass them by plugging in its own functions.  The first
patch adds these helpers, and the later patches switch three drivers over to
using them.

Jerome, I tried to address your concerns about code sharing by making the
helpers available without making them required.

I haven't yet compile-tested the Exynos change since I don't have a toolchain
set up for that, but I'll try to do that today.

Aaron Plattner (4):
  drm: add prime helpers
  drm/nouveau: use prime helpers
  drm/radeon: use prime helpers
  drm/exynos: use prime helpers

 drivers/gpu/drm/drm_prime.c                | 190 ++++++++++++++++++++++++++++-
 drivers/gpu/drm/exynos/exynos_drm_dmabuf.c | 151 ++---------------------
 drivers/gpu/drm/exynos/exynos_drm_dmabuf.h |  13 +-
 drivers/gpu/drm/exynos/exynos_drm_drv.c    |   2 +
 drivers/gpu/drm/nouveau/nouveau_bo.h       |   1 -
 drivers/gpu/drm/nouveau/nouveau_drm.c      |   9 +-
 drivers/gpu/drm/nouveau/nouveau_gem.c      |   2 -
 drivers/gpu/drm/nouveau/nouveau_gem.h      |  11 +-
 drivers/gpu/drm/nouveau/nouveau_prime.c    | 172 ++++----------------------
 drivers/gpu/drm/radeon/radeon_drv.c        |  17 +--
 drivers/gpu/drm/radeon/radeon_prime.c      | 169 ++++---------------------
 include/drm/drmP.h                         |  15 +++
 12 files changed, 288 insertions(+), 464 deletions(-)

-- 
1.8.0.1

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2012-12-10  4:33 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-06 18:07 [PATCH 0/4] Prime helpers Aaron Plattner
2012-12-06 18:07 ` [PATCH 1/4] drm: add prime helpers Aaron Plattner
2012-12-06 21:46   ` Daniel Vetter
2012-12-06 21:50     ` Daniel Vetter
2012-12-07 14:03       ` Maarten Lankhorst
2012-12-07 17:58     ` Aaron Plattner
2012-12-07 18:48       ` Daniel Vetter
2012-12-07 20:33         ` Aaron Plattner
2012-12-07 21:38           ` Daniel Vetter
2012-12-07 22:07             ` Aaron Plattner
2012-12-06 18:07 ` [PATCH 2/4] drm/nouveau: use " Aaron Plattner
2012-12-06 18:07 ` [PATCH 3/4] drm/radeon: " Aaron Plattner
2012-12-06 18:07 ` [PATCH 4/4] drm/exynos: " Aaron Plattner
2012-12-06 18:48   ` [PATCH v2] " Aaron Plattner
2012-12-07  6:36     ` Inki Dae
2012-12-07  8:11       ` Daniel Vetter
2012-12-07 17:48       ` Aaron Plattner
2012-12-10  4:33         ` Inki Dae

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.