drm: fourcc byteorder: drop DRM_FORMAT_BIG_ENDIAN
Subsystems (2)
PATCH 1/1 drm: fourcc byteorder: drop DRM_FORMAT_BIG_ENDIAN
It's unused.
Suggested-by Daniel Vetter <[email protected]>
Signed-off-by Gerd Hoffmann <[email protected]>
--- include/uapi/drm/drm_fourcc.h | 2 -- drivers/gpu/drm/drm_fourcc.c | 3 +-- drivers/gpu/drm/drm_framebuffer.c | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-)
include/uapi/drm/drm_fourcc.h +0 -2
@@ -33,8 +33,6 @@ extern "C" {#define fourcc_code (a, b, c, d) ((__u32)(a) | ((__u32)(b) << 8) | \ ((__u32)(c) << 16) | ((__u32)(d) << 24)) -#define DRM_FORMAT_BIG_ENDIAN (1<<31)/* format is big endian instead of little endian */ -/* color index */ #define DRM_FORMAT_C8 fourcc_code('C', '8', ' ', ' ')/* [7:0] C */
drivers/gpu/drm/drm_fourcc.c +1 -2
@@ -86,12 +86,11 @@ EXPORT_SYMBOL(drm_mode_legacy_fb_format);const char *drm_get_format_name (uint32_t format,struct drm_format_name_buf *buf) {snprintf (buf->str,sizeof (buf->str), -"%c%c%c%c %s-endian (0x%08x)" , +"%c%c%c%c (0x%08x)" ,printable_char (format &0xff ),printable_char ((format >>8 ) &0xff ),printable_char ((format >>16 ) &0xff ),printable_char ((format >>24 ) &0x7f ), - format &DRM_FORMAT_BIG_ENDIAN ?"big" :"little" , format);return buf->str;
drivers/gpu/drm/drm_framebuffer.c +1 -1
@@ -152,7 +152,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; DRM_DEBUG_KMS("bad framebuffer format %s\n",
Signature · 6 lines
2.9.3 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel