OSDN Git Service

drm: drm_fourcc: Add generic alias for 16_16_TILE modifier
authorBrian Starkey <brian.starkey@arm.com>
Fri, 26 Jun 2020 16:48:00 +0000 (17:48 +0100)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Mon, 6 Jul 2020 13:58:26 +0000 (14:58 +0100)
commit9ac2b63791ef63935c71e2a7f5444a1118c4d084
tree9c60a206a14eef08a9758c12aeb3d6c4b1fe3bc6
parentbe8c8403f63cf9f55feecbdcf8827197c065ba7d
drm: drm_fourcc: Add generic alias for 16_16_TILE modifier

In cases such as DRM_FORMAT_MOD_SAMSUNG_16_16_TILE, the modifier
describes a generic pixel re-ordering which can be applicable to
multiple vendors.

Define an alias: DRM_FORMAT_MOD_GENERIC_16_16_TILE, which can be
used to describe this layout in a vendor-neutral way, and add a
comment about the expected usage of such "generic" modifiers.

Changes in v2:
 - Move note about future cases to comment (Daniel)

Signed-off-by: Brian Starkey <brian.starkey@arm.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200626164800.11595-1-brian.starkey@arm.com
include/uapi/drm/drm_fourcc.h