OSDN Git Service

drm/fourcc: Add macros to determine the modifier vendor
authorThierry Reding <treding@nvidia.com>
Thu, 10 Jun 2021 11:12:34 +0000 (13:12 +0200)
committerThierry Reding <treding@nvidia.com>
Mon, 16 Aug 2021 10:17:56 +0000 (12:17 +0200)
commit32a4eb04d59ae8d5bb5baa5a8528e31094ae8e84
tree631593aae617b5c66626c1b56465cdfe6935af53
parent7b812171257d4b8d9ef69321134c72b647e1ce9c
drm/fourcc: Add macros to determine the modifier vendor

When working with framebuffer modifiers, it can be useful to extract the
vendor identifier or check a modifier against a given vendor identifier.
Add one macro that extracts the vendor identifier and a helper to check
a modifier against a given vendor identifier.

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Daniel Stone <daniels@collabora.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210610111236.3814211-1-thierry.reding@gmail.com
include/uapi/drm/drm_fourcc.h