diff options
author | Simon Ser <contact@emersion.fr> | 2023-06-21 17:24:59 -0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-07-12 11:12:09 -0400 |
commit | c1e18c44dc7f70a411d94f24f437a320b327887c (patch) | |
tree | ee9c495a4cc7ad25c79a4ed0a0fb5714613f4d7b /drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | |
parent | c2e3f5b571c543b089ef350cfe8073af151fe7b9 (diff) |
drm/amd/display: only accept async flips for fast updates
Up until now, amdgpu was silently degrading to vsync when
user-space requested an async flip but the hardware didn't support
it.
The hardware doesn't support immediate flips when the update changes
the FB pitch, the DCC state, the rotation, enables or disables CRTCs
or planes, etc. This is reflected in the dm_crtc_state.update_type
field: UPDATE_TYPE_FAST means that immediate flip is supported.
Silently degrading async flips to vsync is not the expected behavior
from a uAPI point-of-view. Xorg expects async flips to fail if
unsupported, to be able to fall back to a blit. i915 already behaves
this way.
This patch aligns amdgpu with uAPI expectations and returns a failure
when an async flip is not possible.
Signed-off-by: Simon Ser <contact@emersion.fr>
Reviewed-by: André Almeida <andrealmeid@igalia.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: André Almeida <andrealmeid@igalia.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h')
0 files changed, 0 insertions, 0 deletions