diff options
| author | Gerd Hoffmann <[email protected]> | 2018-09-05 06:04:42 +0000 |
|---|---|---|
| committer | Gerd Hoffmann <[email protected]> | 2018-09-06 06:40:18 +0000 |
| commit | 00409fd6f14f1a3f06c6ea50a6f2fba17c5573d9 (patch) | |
| tree | fa5206e0602dba839fe703a8b6c7d9c11bef072e /drivers/gpu/drm/drm_framebuffer.c | |
| parent | drm: byteorder: add DRM_FORMAT_HOST_* (diff) | |
| download | kernel-00409fd6f14f1a3f06c6ea50a6f2fba17c5573d9.tar.gz kernel-00409fd6f14f1a3f06c6ea50a6f2fba17c5573d9.zip | |
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 <[email protected]>
Reviewed-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/drm_framebuffer.c')
| -rw-r--r-- | drivers/gpu/drm/drm_framebuffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_framebuffer.c b/drivers/gpu/drm/drm_framebuffer.c index 17b7b8944de5..888c4d53cf23 100644 --- a/drivers/gpu/drm/drm_framebuffer.c +++ b/drivers/gpu/drm/drm_framebuffer.c @@ -164,7 +164,7 @@ static int framebuffer_check(struct drm_device *dev, int i; /* check if the format is supported at all */ - info = __drm_format_info(r->pixel_format & ~DRM_FORMAT_BIG_ENDIAN); + info = __drm_format_info(r->pixel_format); if (!info) { struct drm_format_name_buf format_name; |
