OSDN Git Service

util: Add a drm_find_modifier helper
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Thu, 14 Mar 2019 04:13:45 +0000 (04:13 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Thu, 14 Mar 2019 22:41:08 +0000 (22:41 +0000)
commit8a1ab9a166dd358f0e71a1cc98e8b6c20b5d8822
treef771609b70b17cb2507660bc4dd2de8135697e5a
parent16d108b502370b31cad7438a3e53b25554840f47
util: Add a drm_find_modifier helper

This function is replicated across vc4/v3d/freedreno and is needed in
Panfrost; let's make this shared code.

v2: Supply generic util_array_contains_u64 version (Eric Engestrom). Add
missing stdbool.h include (Eric Anholt). Mark inline (Christian
Gmeiner).

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/util/u_drm.h [new file with mode: 0644]