diff options
author | Simon Ser <contact@emersion.fr> | 2020-12-03 20:19:41 +0000 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-12-08 23:02:16 -0500 |
commit | e72868c4eacf435d9c6cdf47359a058c38223e46 (patch) | |
tree | 586ad7e0f6de02e0c1e171a88be245b962e8afe5 /drivers/gpu/drm/lima/lima_pp.h | |
parent | b0455fda6dd4e8d31f4ffa198a7ae77b831ac8e7 (diff) |
drm/amd/display: check cursor FB is linear
Previously we accepted non-linear buffers for the cursor plane. This
results in bad output, DC validation failures and oops.
Make sure the FB uses a linear layout in the atomic check function.
The GFX8- check is inspired from ac_surface_set_bo_metadata in Mesa.
The GFX9+ check comes from convert_tiling_flags_to_modifier.
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Simon Ser <contact@emersion.fr>
References: https://gitlab.freedesktop.org/drm/amd/-/issues/1390
Cc: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Harry Wentland <hwentlan@amd.com>
Cc: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/lima/lima_pp.h')
0 files changed, 0 insertions, 0 deletions