summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/dc_stream.h
diff options
context:
space:
mode:
authorAlex Hung <alex.hung@amd.com>2023-06-23 18:40:39 +0300
committerAlex Deucher <alexander.deucher@amd.com>2023-10-03 22:42:56 +0300
commit77a66faaccc0455fe30e326e9a997aec8d0abed4 (patch)
tree9db4e7d8807b329c489287214232b3d9dfd946a8 /drivers/gpu/drm/amd/display/dc/dc_stream.h
parentb79a00a4d4f8fc827ca0fc19e259913a81252f6b (diff)
downloadlinux-77a66faaccc0455fe30e326e9a997aec8d0abed4.tar.xz
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. 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>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dc_stream.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dc_stream.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc_stream.h b/drivers/gpu/drm/amd/display/dc/dc_stream.h
index e03bb0e32e1d..889610a8b26b 100644
--- a/drivers/gpu/drm/amd/display/dc/dc_stream.h
+++ b/drivers/gpu/drm/amd/display/dc/dc_stream.h
@@ -454,6 +454,10 @@ bool dc_stream_add_writeback(struct dc *dc,
struct dc_stream_state *stream,
struct dc_writeback_info *wb_info);
+bool dc_stream_fc_disable_writeback(struct dc *dc,
+ struct dc_stream_state *stream,
+ uint32_t dwb_pipe_inst);
+
bool dc_stream_remove_writeback(struct dc *dc,
struct dc_stream_state *stream,
uint32_t dwb_pipe_inst);