Commit b35ce7b3 authored by Bas Nieuwenhuizen's avatar Bas Nieuwenhuizen Committed by Alex Deucher

drm/amd/display: Do not silently accept DCC for multiplane formats.

Silently accepting it could result in corruption.
Signed-off-by: default avatarBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Reviewed-by: default avatarNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e31ae352
...@@ -3829,7 +3829,7 @@ fill_plane_dcc_attributes(struct amdgpu_device *adev, ...@@ -3829,7 +3829,7 @@ fill_plane_dcc_attributes(struct amdgpu_device *adev,
return 0; return 0;
if (format >= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN) if (format >= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN)
return 0; return -EINVAL;
if (!dc->cap_funcs.get_dcc_compression_cap) if (!dc->cap_funcs.get_dcc_compression_cap)
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment