drm/amd/display: Disable DWB frame capture to emulate oneshot
authorAlex Hung <alex.hung@amd.com>
Fri, 1 Dec 2023 13:25:39 +0000 (06:25 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2023 20:22:36 +0000 (15:22 -0500)
commit87ce0e62694115cfe4210a17c269d6855d2a139b
tree02f6e7eacabdae51963fcbc6d7d9b9b70113c83d
parent50ad10cba6cd1c7f0ac9049f2c2c6b7589b510d0
drm/amd/display: Disable DWB frame capture to emulate oneshot

[WHY]
drm_writeback requires to capture exact one frame in each writeback
call.

[HOW]
frame_capture is disabled after each writeback is completed.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
drivers/gpu/drm/amd/display/dc/dc_stream.h