diff options
author | Shirish S | 2019-02-04 09:54:25 +0100 |
---|---|---|
committer | Alex Deucher | 2019-02-06 03:16:22 +0100 |
commit | 12a8bd8862ebd7d6e0f764120e2f322ddc077a11 (patch) | |
tree | ba00f672540fe239c258212d0cab7972069c794e /drivers/gpu | |
parent | drm/amd/display: Don't re-enable CRC when CONFIG_DEBUG_FS isn't defined (diff) | |
download | kernel-qcow2-linux-12a8bd8862ebd7d6e0f764120e2f322ddc077a11.tar.gz kernel-qcow2-linux-12a8bd8862ebd7d6e0f764120e2f322ddc077a11.tar.xz kernel-qcow2-linux-12a8bd8862ebd7d6e0f764120e2f322ddc077a11.zip |
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: Shirish S <shirish.s@amd.com>
Reviewed-by: Roman Li <Roman.Li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c index db0ef41eb91c..fd7cd5b5a17c 100644 --- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c @@ -2535,7 +2535,7 @@ static void dce110_apply_ctx_for_surface( } 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) |