Commit 12a8bd88 authored by Shirish S's avatar Shirish S Committed by Alex Deucher

drm/amd/display: Use context parameters to enable FBC

[What]
FBC fails to get enabled when switched between LINEAR(console/VT)
and non-LINEAR(GUI) based rendering due to default value of
tiling info stored in the current_state which is used for deciding
whether or not to turn FBC on or off.

[How]
Use context structure's tiling information which is coherant with
the screen updates.
Signed-off-by: default avatarShirish S <shirish.s@amd.com>
Reviewed-by: default avatarRoman Li <Roman.Li@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent cc7e422d
...@@ -2535,7 +2535,7 @@ static void dce110_apply_ctx_for_surface( ...@@ -2535,7 +2535,7 @@ static void dce110_apply_ctx_for_surface(
} }
if (dc->fbc_compressor) if (dc->fbc_compressor)
enable_fbc(dc, dc->current_state); enable_fbc(dc, context);
} }
static void dce110_power_down_fe(struct dc *dc, struct pipe_ctx *pipe_ctx) static void dce110_power_down_fe(struct dc *dc, struct pipe_ctx *pipe_ctx)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment