Simon Ser e72868c4ea 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>
2020-12-08 23:02:16 -05:00
..
2020-11-04 11:49:10 +10:00
2020-08-11 11:58:31 +10:00
2020-11-04 11:49:10 +10:00
2020-11-04 11:49:10 +10:00
2020-11-04 11:49:10 +10:00
2020-08-06 14:27:31 -07:00
2020-11-10 14:36:36 +01:00
2020-11-10 14:36:36 +01:00
2020-11-04 11:49:10 +10:00
2020-11-04 11:49:10 +10:00
2020-11-04 11:49:10 +10:00
2020-11-04 11:49:10 +10:00
2020-10-23 10:05:17 +02:00
2020-11-10 14:36:36 +01:00
2020-04-03 17:11:41 +02:00
2020-11-04 11:49:10 +10:00
2020-11-04 11:49:10 +10:00
2020-11-04 11:49:10 +10:00
2020-11-04 11:49:10 +10:00
2020-06-24 09:17:34 +02:00
2020-11-10 14:36:36 +01:00
2020-11-04 11:49:10 +10:00
2020-11-04 11:49:10 +10:00
2020-11-04 11:49:10 +10:00
2020-05-27 14:31:42 +03:00
2020-04-03 17:11:41 +02:00
2020-11-04 11:49:10 +10:00
2020-09-21 10:45:08 +02:00
2020-11-04 11:49:10 +10:00
2020-11-04 11:49:10 +10:00
2020-11-04 11:49:10 +10:00
2020-11-04 11:49:10 +10:00
2020-05-29 12:58:11 +02:00
2020-09-21 10:45:08 +02:00
2020-08-11 11:58:31 +10:00
2020-08-11 11:58:31 +10:00
2020-11-04 11:49:10 +10:00
2020-06-24 15:45:51 +10:00
2020-10-29 15:57:57 +01:00