mirror of
https://github.com/torvalds/linux.git
synced 2024-11-19 10:31:48 +00:00
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>
This commit is contained in:
parent
3426d66d3e
commit
689e7b3423
@ -1736,7 +1736,12 @@ static void set_static_screen_control(struct pipe_ctx **pipe_ctx,
|
|||||||
if (events->force_trigger)
|
if (events->force_trigger)
|
||||||
value |= 0x1;
|
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++)
|
for (i = 0; i < num_pipes; i++)
|
||||||
pipe_ctx[i]->stream_res.tg->funcs->
|
pipe_ctx[i]->stream_res.tg->funcs->
|
||||||
|
Loading…
Reference in New Issue
Block a user