Skip to content

Commit

Permalink
drm/amdgpu/display: check if fbc is available in set_static_screen_co…
Browse files Browse the repository at this point in the history
…ntrol (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>
  • Loading branch information
Alex Deucher committed Nov 6, 2018
1 parent 3426d66 commit 689e7b3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1736,7 +1736,12 @@ static void set_static_screen_control(struct pipe_ctx **pipe_ctx,
if (events->force_trigger)
value |= 0x1;

value |= 0x84;
if (num_pipes) {
struct dc *dc = pipe_ctx[0]->stream->ctx->dc;

if (dc->fbc_compressor)
value |= 0x84;
}

for (i = 0; i < num_pipes; i++)
pipe_ctx[i]->stream_res.tg->funcs->
Expand Down

0 comments on commit 689e7b3

Please sign in to comment.