]> git.baikalelectronics.ru Git - kernel.git/commit
drm: do not mask out DRM_FORMAT_BIG_ENDIAN
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 5 Sep 2018 06:04:42 +0000 (08:04 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 6 Sep 2018 06:40:18 +0000 (08:40 +0200)
commite926d6a51ce9263565bb55cb2c5264170861dc5b
treefa5206e0602dba839fe703a8b6c7d9c11bef072e
parentf65c17f4ca7e9168d52b7d76cb950465003e7577
drm: do not mask out DRM_FORMAT_BIG_ENDIAN

framebuffer_check() expects that drm_get_format_info() will not fail if
the __drm_format_info() call was successful.  That'll work only in case
both are called with the same pixel_format value, so masking out the
DRM_FORMAT_BIG_ENDIAN flag isn't a good idea.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20180905060445.15008-4-kraxel@redhat.com
drivers/gpu/drm/drm_framebuffer.c