All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Centralize format information
@ 2016-06-06 23:33 Laurent Pinchart
  2016-06-06 23:33 ` [PATCH 1/4] drm: " Laurent Pinchart
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Laurent Pinchart @ 2016-06-06 23:33 UTC (permalink / raw)
  To: dri-devel; +Cc: Daniel Vetter, Tomi Valkeinen

Hello,

Various pieces of information about DRM formats (number of planes, color
depth, chroma subsampling, ...) are scattered across different helper
functions in the DRM core. Callers of those functions often need to access
more than a single parameter of the format, leading to inefficiencies due to
multiple lookups.

This patch series addresses this issue by centralizing all format information
in a single data structure (1/4). It reimplements the existing format helper
functions based on that structure (3/4) and converts the DRM core code to use
the new structure (4/4). Two unused format helper functions are removed in the
process (2/4).

The new API is also useful for drivers. I will shortly post a patch series for
the omapdrm driver that makes use of it.

Laurent Pinchart (4):
  drm: Centralize format information
  drm: Remove unused drm_format_plane_(width|height) helpers
  drm: Implement the drm_format_*() helpers as drm_format_info()
    wrappers
  drm: Use drm_format_info() in DRM core code

 drivers/gpu/drm/drm_crtc.c          | 391 +++++++++++-------------------------
 drivers/gpu/drm/drm_fb_cma_helper.c |  23 ++-
 include/drm/drm_crtc.h              |  23 ++-
 3 files changed, 153 insertions(+), 284 deletions(-)

-- 
Regards,

Laurent Pinchart

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2016-06-07 13:33 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-06 23:33 [PATCH 0/4] Centralize format information Laurent Pinchart
2016-06-06 23:33 ` [PATCH 1/4] drm: " Laurent Pinchart
2016-06-07  9:18   ` Tomi Valkeinen
2016-06-07 11:48     ` Laurent Pinchart
2016-06-07  9:25   ` Tomi Valkeinen
2016-06-07 12:05     ` Laurent Pinchart
2016-06-07 13:20   ` Ville Syrjälä
2016-06-07 13:24     ` Laurent Pinchart
2016-06-06 23:33 ` [PATCH 2/4] drm: Remove unused drm_format_plane_(width|height) helpers Laurent Pinchart
2016-06-07 13:19   ` Ville Syrjälä
2016-06-07 13:23     ` Laurent Pinchart
2016-06-06 23:33 ` [PATCH 3/4] drm: Implement the drm_format_*() helpers as drm_format_info() wrappers Laurent Pinchart
2016-06-06 23:33 ` [PATCH 4/4] drm: Use drm_format_info() in DRM core code Laurent Pinchart
2016-06-07 13:27 ` [PATCH 0/4] Centralize format information Daniel Vetter
2016-06-07 13:33   ` Laurent Pinchart

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.