Skip to content

Commit 689e7b3

Browse files
committed
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>
1 parent 3426d66 commit 689e7b3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1736,7 +1736,12 @@ static void set_static_screen_control(struct pipe_ctx **pipe_ctx,
17361736
if (events->force_trigger)
17371737
value |= 0x1;
17381738

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+
}
17401745

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

0 commit comments

Comments
 (0)