]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2c4d54bd15aaca6f0656d7c0ffc275a595c4b965
tree631593aae617b5c66626c1b56465cdfe6935af53
parente0cb1d7d18bd7e3ba399961b2618e81b928584d4
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