aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorMark Yacoub <[email protected]>2021-03-24 20:16:24 +0000
committerAlex Deucher <[email protected]>2021-04-09 20:43:54 +0000
commitf4a9be998c8ee39a30a68cb775c91928fe10a384 (patch)
tree8128e30f3fd632a901ecf13ba78322a084c7de4c /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentdrm/amd/pm: Convert sysfs sprintf/snprintf family to sysfs_emit (diff)
downloadkernel-f4a9be998c8ee39a30a68cb775c91928fe10a384.tar.gz
kernel-f4a9be998c8ee39a30a68cb775c91928fe10a384.zip
drm/amdgpu: Ensure that the modifier requested is supported by plane.
On initializing the framebuffer, call drm_any_plane_has_format to do a check if the modifier is supported. drm_any_plane_has_format calls dm_plane_format_mod_supported which is extended to validate that the modifier is on the list of the plane's supported modifiers. The bug was caught using igt-gpu-tools test: kms_addfb_basic.addfb25-bad-modifier Tested on ChromeOS Zork by turning on the display, running an overlay test, and running a YT video. === Changes from v1 === Explicitly handle DRM_FORMAT_MOD_INVALID modifier. Cc: Alex Deucher <[email protected]> Cc: Bas Nieuwenhuizen <[email protected]> Signed-off-by: Mark Yacoub <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions