aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/0769-drm-amdgpu-display-check-if-fbc-is-available-in-set_.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/0769-drm-amdgpu-display-check-if-fbc-is-available-in-set_.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/0769-drm-amdgpu-display-check-if-fbc-is-available-in-set_.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/0769-drm-amdgpu-display-check-if-fbc-is-available-in-set_.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/0769-drm-amdgpu-display-check-if-fbc-is-available-in-set_.patch
new file mode 100644
index 00000000..9e3aa9b3
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/0769-drm-amdgpu-display-check-if-fbc-is-available-in-set_.patch
@@ -0,0 +1,37 @@
+From 5013dfd4431401cac0ed789f0f6ab7b3d900c500 Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Fri, 2 Nov 2018 10:51:50 -0500
+Subject: [PATCH 0769/2940] 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>
+---
+ .../gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+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 e7e9f7c2372e..520f0e847b23 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
+@@ -1750,7 +1750,12 @@ static void set_static_screen_control(struct pipe_ctx **pipe_ctx,
+ if (events->force_trigger)
+ 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++)
+ pipe_ctx[i]->stream_res.tg->funcs->
+--
+2.17.1
+