aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0569-drm-amd-dal-Add-support-for-flip-immediate.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0569-drm-amd-dal-Add-support-for-flip-immediate.patch')
-rw-r--r--common/recipes-kernel/linux/files/0569-drm-amd-dal-Add-support-for-flip-immediate.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0569-drm-amd-dal-Add-support-for-flip-immediate.patch b/common/recipes-kernel/linux/files/0569-drm-amd-dal-Add-support-for-flip-immediate.patch
new file mode 100644
index 00000000..502d9a8e
--- /dev/null
+++ b/common/recipes-kernel/linux/files/0569-drm-amd-dal-Add-support-for-flip-immediate.patch
@@ -0,0 +1,42 @@
+From 0c539fa4be268f4c03fea1de64cdc576d45f7943 Mon Sep 17 00:00:00 2001
+From: Aric Cyr <aric.cyr@amd.com>
+Date: Wed, 2 Dec 2015 18:08:18 -0500
+Subject: [PATCH 0569/1110] drm/amd/dal: Add support for flip-immediate
+
+Signed-off-by: Aric Cyr <aric.cyr@amd.com>
+Signed-off-by: Harry Wentland <harry.wentland@amd.com>
+Acked-by: Harry Wentland <harry.wentland@amd.com>
+---
+ drivers/gpu/drm/amd/dal/dc/core/dc.c | 2 ++
+ drivers/gpu/drm/amd/dal/dc/dc.h | 2 +-
+ 2 files changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/dal/dc/core/dc.c b/drivers/gpu/drm/amd/dal/dc/core/dc.c
+index e141e99..1eee73e 100644
+--- a/drivers/gpu/drm/amd/dal/dc/core/dc.c
++++ b/drivers/gpu/drm/amd/dal/dc/core/dc.c
+@@ -683,6 +683,8 @@ void dc_flip_surface_addrs(struct dc* dc,
+ * then we'll have to awkwardly bypass the "const" surface.
+ */
+ surface->public.address = flip_addrs[i].address;
++ surface->public.flip_immediate = flip_addrs[i].flip_immediate;
++
+ dc->hwss.update_plane_address(
+ surface,
+ DC_TARGET_TO_CORE(surface->status.dc_target));
+diff --git a/drivers/gpu/drm/amd/dal/dc/dc.h b/drivers/gpu/drm/amd/dal/dc/dc.h
+index 7b611d7..2d92d14 100644
+--- a/drivers/gpu/drm/amd/dal/dc/dc.h
++++ b/drivers/gpu/drm/amd/dal/dc/dc.h
+@@ -106,7 +106,7 @@ void dc_surface_release(const struct dc_surface *dc_surface);
+ */
+ struct dc_flip_addrs {
+ struct dc_plane_address address;
+-
++ bool flip_immediate;
+ /* TODO: DCC format info */
+ /* TODO: add flip duration for FreeSync */
+ };
+--
+2.7.4
+