[PATCH 0/5] drm: byteorder fixes

Gerd Hoffmann kraxel at redhat.com
Mon Sep 3 10:57:51 UTC 2018


After a loooong break, here is the next version of the patch series.
It adds some convinience #defines for host byteoder drm formats.  It
fixes drm_mode_addfb() behavior on bigendian machines.  For bug
compatibility reasons a driver feature flag activates the fix.  bochs
and virtio-gpu drivers are updated to use the new #defines, set the new
driver feature flag and fix some issues.

Gerd Hoffmann (5):
  drm: byteorder: add DRM_FORMAT_HOST_*
  drm: do not mask out DRM_FORMAT_BIG_ENDIAN
  drm: fix drm_mode_addfb() on big endian machines.
  drm/bochs: fix DRM_FORMAT_* handling for big endian machines.
  drm/virtio: fix DRM_FORMAT_* handling

 include/drm/drm_drv.h                    |  1 +
 include/drm/drm_fourcc.h                 | 22 +++++++++++++
 drivers/gpu/drm/bochs/bochs_drv.c        |  3 +-
 drivers/gpu/drm/bochs/bochs_fbdev.c      |  5 ++-
 drivers/gpu/drm/bochs/bochs_kms.c        | 33 ++++++++++++++++++-
 drivers/gpu/drm/bochs/bochs_mm.c         |  2 +-
 drivers/gpu/drm/drm_framebuffer.c        | 13 +++++++-
 drivers/gpu/drm/virtio/virtgpu_display.c |  4 +++
 drivers/gpu/drm/virtio/virtgpu_drv.c     |  4 ++-
 drivers/gpu/drm/virtio/virtgpu_fb.c      |  2 +-
 drivers/gpu/drm/virtio/virtgpu_gem.c     |  7 +++--
 drivers/gpu/drm/virtio/virtgpu_plane.c   | 54 ++------------------------------
 12 files changed, 87 insertions(+), 63 deletions(-)

-- 
2.9.3



More information about the dri-devel mailing list