aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorVille Syrjälä <[email protected]>2018-10-29 18:34:52 +0000
committerVille Syrjälä <[email protected]>2018-11-06 19:34:22 +0000
commite7afb623b4fb82089c9a50c733c740522b8220bc (patch)
tree881e5747b55073c6da147abb8866df0bd4b96da6 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parentdrm/lease: look at ->universal_planes only once (diff)
downloadkernel-e7afb623b4fb82089c9a50c733c740522b8220bc.tar.gz
kernel-e7afb623b4fb82089c9a50c733c740522b8220bc.zip
drm: Add drm_any_plane_has_format()
Add a function to check whether there is at least one plane that supports a specific format and modifier combination. Drivers can use this to reject unsupported formats/modifiers in .fb_create(). v2: Accept anyformat if the driver doesn't do planes (Eric) s/planes_have_format/any_plane_has_format/ (Eric) Check the modifier as well since we already have a function that does both v3: Don't do the check in the core since we may not know the modifier yet, instead export the function and let drivers call it themselves Cc: Eric Anholt <[email protected]> Cc: Dhinakaran Pandiyan <[email protected]> Signed-off-by: Ville Syrjälä <[email protected]> Reviewed-by: Dhinakaran Pandiyan <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions