blob: 502d9a8e510f4ebd847d4528046fd50a3ebd6a11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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
|