diff options
| author | Simon Ser <[email protected]> | 2020-12-03 20:19:41 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2020-12-09 04:02:16 +0000 |
| commit | e72868c4eacf435d9c6cdf47359a058c38223e46 (patch) | |
| tree | 586ad7e0f6de02e0c1e171a88be245b962e8afe5 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | drm/amd/display: extract cursor FB checks into a function (diff) | |
| download | kernel-e72868c4eacf435d9c6cdf47359a058c38223e46.tar.gz kernel-e72868c4eacf435d9c6cdf47359a058c38223e46.zip | |
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 <[email protected]>
Signed-off-by: Simon Ser <[email protected]>
References: https://gitlab.freedesktop.org/drm/amd/-/issues/1390
Cc: Bas Nieuwenhuizen <[email protected]>
Cc: Alex Deucher <[email protected]>
Cc: Harry Wentland <[email protected]>
Cc: Nicholas Kazlauskas <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions
