drm: Create a format/modifier blob
authorBen Widawsky <ben@bwidawsk.net>
Mon, 24 Jul 2017 03:46:39 +0000 (20:46 -0700)
committerJianxin Pan <jianxin.pan@amlogic.com>
Wed, 15 Aug 2018 02:42:25 +0000 (19:42 -0700)
commitb7be45bb0a6d180d9576dfe016239602eb191bab
treeffe2a34968390e0837c5427fcbe85bc43c91a4ff
parentcd3783e47ec4208df7b0d29462b14d0e530c745a
drm: Create a format/modifier blob

Updated blob layout (Rob, Daniel, Kristian, xerpi)

v2:
* Removed __packed, and alignment (.+)
* Fix indent in drm_format_modifier fields (Liviu)
* Remove duplicated modifier > 64 check (Liviu)
* Change comment about modifier (Liviu)
* Remove arguments to blob creation, use plane instead (Liviu)
* Fix data types (Ben)
* Make the blob part of uapi (Daniel)

v3:
Remove unused ret field.
Change i, and j to unsigned int (Emil)

v4:
Use plane->modifier_count instead of recounting (Daniel)

v5:
Rename modifiers to modifiers_property (Ville)
Use sizeof(__u32) instead to reflect UAPI nature (Ville)
Make BUILD_BUG_ON for blob header size

Change-Id: Ibb2490b0510cbae9b5f4252483f8b1531fddf73f
Cc: Rob Clark <robdclark@gmail.com>
Cc: Kristian H. Kristensen <hoegsberg@gmail.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Daniel Stone <daniels@collabora.com> (v2)
Reviewed-by: Liviu Dudau <liviu@dudau.co.uk> (v2)
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> (v3)
Signed-off-by: Daniel Stone <daniels@collabora.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170724034641.13369-2-ben@bwidawsk.net
drivers/amlogic/drm/am_meson_vpu.c
drivers/gpu/drm/drm_mode_config.c
drivers/gpu/drm/drm_plane.c
include/drm/drm_mode_config.h
include/uapi/drm/drm_mode.h