Turned out to be a bit more difficuilt than just adding the "asm/io.h"
header files.  Not all architectures actually have a __io_virt() macro,
so cirrus can't depend on that.  The drm format helpers have to call
memcpy_toio instead.  So this little series add support for that.

Gerd Hoffmann (4):
  drm: add generic convert_lines() function for format conversions.
  drm: use convert_lines() in xrgb8888_to_rgb565 helpers.
  drm: use convert_lines() in xrgb8888_to_rgb565 helpers.
  drm: add convert_lines_toio() variant, fix cirrus builds on powerpc.

 include/drm/drm_format_helper.h     |   9 +-
 drivers/gpu/drm/cirrus/cirrus.c     |   6 +-
 drivers/gpu/drm/drm_format_helper.c | 329 +++++++++++++++++-----------
 3 files changed, 215 insertions(+), 129 deletions(-)

-- 
2.18.1

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

Reply via email to