Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 593f79a2 authored by Alex Deucher's avatar Alex Deucher
Browse files

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: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 2cf6dd9c
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1750,7 +1750,12 @@ static void set_static_screen_control(struct pipe_ctx **pipe_ctx,
	if (events->force_trigger)
		value |= 0x1;

	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->