aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/2681-amdgpu-dc-drop-dml_util_is_420.patch
blob: 8d36c131a6f7e59fb651fed5024f5b6a45a73314 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
From c5637e278d4ea9d02f67810d3e7760fcbf199904 Mon Sep 17 00:00:00 2001
From: Dave Airlie <airlied@redhat.com>
Date: Thu, 28 Sep 2017 10:55:25 +1000
Subject: [PATCH 2681/4131] amdgpu/dc: drop dml_util_is_420

This is unused code.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 .../gpu/drm/amd/display/dc/dml/dml_common_defs.c   | 33 ----------------------
 .../gpu/drm/amd/display/dc/dml/dml_common_defs.h   |  1 -
 2 files changed, 34 deletions(-)

diff --git a/drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.c b/drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.c
index 101fb6f..1683514 100644
--- a/drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.c
+++ b/drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.c
@@ -60,36 +60,3 @@ unsigned int dml_round_to_multiple(
 	else
 		return (num - remainder);
 }
-
-bool dml_util_is_420(enum source_format_class sorce_format)
-{
-	bool val = false;
-
-	switch (sorce_format) {
-	case dm_444_16:
-		val = false;
-		break;
-	case dm_444_32:
-		val = false;
-		break;
-	case dm_444_64:
-		val = false;
-		break;
-	case dm_420_8:
-		val = true;
-		break;
-	case dm_420_10:
-		val = true;
-		break;
-	case dm_422_8:
-		val = false;
-		break;
-	case dm_422_10:
-		val = false;
-		break;
-	default:
-		BREAK_TO_DEBUGGER();
-	}
-
-	return val;
-}
diff --git a/drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.h b/drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.h
index a55f4d5..e11d123 100644
--- a/drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.h
+++ b/drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.h
@@ -34,7 +34,6 @@
 #define dml_print(str, ...) {dm_logger_write(mode_lib->logger, LOG_DML, str, ##__VA_ARGS__); }
 #define DTRACE(str, ...) {dm_logger_write(mode_lib->logger, LOG_DML, str, ##__VA_ARGS__); }
 
-bool dml_util_is_420(enum source_format_class sorce_format);
 double dml_round(double a);
 unsigned int dml_round_to_multiple(
 			unsigned int num, unsigned int multiple, bool up);
-- 
2.7.4