diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2018-11-02 11:51:50 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-11-06 16:45:08 -0500 |
commit | 689e7b34234e29e5168894b27b752a4e16ef08c4 (patch) | |
tree | 0809403a2ac4755a90f1bb32f83fcf612ac10129 /drivers/gpu | |
parent | 3426d66d3e74ab0ab264a85e0795a17e3dde1e71 (diff) |
drm/amdgpu/display: check if fbc is available in set_static_screen_control (v2)
The value is dependent on whether fbc is available.
v2: only check if num_pipes is valid
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c index b75ede5f84f7..b459867a05b2 100644 --- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | |||
@@ -1736,7 +1736,12 @@ static void set_static_screen_control(struct pipe_ctx **pipe_ctx, | |||
1736 | if (events->force_trigger) | 1736 | if (events->force_trigger) |
1737 | value |= 0x1; | 1737 | value |= 0x1; |
1738 | 1738 | ||
1739 | value |= 0x84; | 1739 | if (num_pipes) { |
1740 | struct dc *dc = pipe_ctx[0]->stream->ctx->dc; | ||
1741 | |||
1742 | if (dc->fbc_compressor) | ||
1743 | value |= 0x84; | ||
1744 | } | ||
1740 | 1745 | ||
1741 | for (i = 0; i < num_pipes; i++) | 1746 | for (i = 0; i < num_pipes; i++) |
1742 | pipe_ctx[i]->stream_res.tg->funcs-> | 1747 | pipe_ctx[i]->stream_res.tg->funcs-> |