aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2468-drm-amd-display-Add-FBC-on-off-to-front-end-programm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2468-drm-amd-display-Add-FBC-on-off-to-front-end-programm.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2468-drm-amd-display-Add-FBC-on-off-to-front-end-programm.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2468-drm-amd-display-Add-FBC-on-off-to-front-end-programm.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2468-drm-amd-display-Add-FBC-on-off-to-front-end-programm.patch
new file mode 100644
index 00000000..728b92fb
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2468-drm-amd-display-Add-FBC-on-off-to-front-end-programm.patch
@@ -0,0 +1,38 @@
+From 4a3ddea3583e74681d83c3420882f145ff87e932 Mon Sep 17 00:00:00 2001
+From: Roman Li <Roman.Li@amd.com>
+Date: Thu, 7 Sep 2017 17:02:47 -0400
+Subject: [PATCH 2468/4131] drm/amd/display: Add FBC on/off to front-end
+ programming
+
+- Fixing text mode for cases when VT-switch doesn't result
+in timing change
+
+Signed-off-by: Roman Li <Roman.Li@amd.com>
+Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+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 91d902d..9e02d74 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
+@@ -2549,6 +2549,15 @@ static void dce110_program_front_end_for_pipe(
+
+ program_scaler(dc, pipe_ctx);
+
++#ifdef ENABLE_FBC
++ if (dc->fbc_compressor && old_pipe->stream) {
++ if (plane_state->tiling_info.gfx8.array_mode == DC_ARRAY_LINEAR_GENERAL)
++ dc->fbc_compressor->funcs->disable_fbc(dc->fbc_compressor);
++ else
++ enable_fbc(dc, dc->current_state);
++ }
++#endif
++
+ mi->funcs->mem_input_program_surface_config(
+ mi,
+ plane_state->format,
+--
+2.7.4
+