[PATCH v2 0/6] drm: byteorder fixes
Gerd Hoffmann
kraxel at redhat.com
Wed Sep 5 06:04:39 UTC 2018
Patch series adds some convinience #defines for host byteoder drm
formats. It fixes drm_mode_addfb() behavior on bigendian machines. For
bug compatibility reasons a mode_config quirk 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 (6):
drm: replace DRIVER_PREFER_XBGR_30BPP driver flag with mode_config
quirk
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 +++++++++++++
include/drm/drm_mode_config.h | 15 +++++++++
drivers/gpu/drm/bochs/bochs_fbdev.c | 5 ++-
drivers/gpu/drm/bochs/bochs_kms.c | 34 +++++++++++++++++++-
drivers/gpu/drm/bochs/bochs_mm.c | 2 +-
drivers/gpu/drm/drm_framebuffer.c | 17 ++++++++--
drivers/gpu/drm/nouveau/dispnv50/disp.c | 2 +-
drivers/gpu/drm/virtio/virtgpu_display.c | 5 +++
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, 101 insertions(+), 65 deletions(-)
--
2.9.3
More information about the dri-devel
mailing list