aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0870-drm-amd-dal-remove-unused-type-ovl_csc_adjustment.patch
blob: 7b81514a70138cb8a966386cafb5db82a76c97d8 (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
From 8a33d2b27da7b9e6081ac603fe8e2d7770344a06 Mon Sep 17 00:00:00 2001
From: Tony Cheng <Tony.Cheng@amd.com>
Date: Sat, 27 Feb 2016 17:33:12 -0500
Subject: [PATCH 0870/1110] drm/amd/dal: remove unused type ovl_csc_adjustment

Signed-off-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
---
 drivers/gpu/drm/amd/dal/dc/dc_hw_types.h          | 44 +++++++++++------------
 drivers/gpu/drm/amd/dal/include/video_csc_types.h | 25 -------------
 2 files changed, 22 insertions(+), 47 deletions(-)

diff --git a/drivers/gpu/drm/amd/dal/dc/dc_hw_types.h b/drivers/gpu/drm/amd/dal/dc/dc_hw_types.h
index 03b95e9..bfe9955 100644
--- a/drivers/gpu/drm/amd/dal/dc/dc_hw_types.h
+++ b/drivers/gpu/drm/amd/dal/dc/dc_hw_types.h
@@ -158,6 +158,28 @@ enum surface_pixel_format {
 	/*grow 444 video here if necessary */
 };
 
+/* Pixel format */
+enum pixel_format {
+	/*graph*/
+	PIXEL_FORMAT_UNINITIALIZED,
+	PIXEL_FORMAT_INDEX8,
+	PIXEL_FORMAT_RGB565,
+	PIXEL_FORMAT_ARGB8888,
+	PIXEL_FORMAT_ARGB2101010,
+	PIXEL_FORMAT_ARGB2101010_XRBIAS,
+	PIXEL_FORMAT_FP16,
+	/*video*/
+	PIXEL_FORMAT_420BPP12,
+	/*end of pixel format definition*/
+	PIXEL_FORMAT_INVALID,
+
+	PIXEL_FORMAT_GRPH_BEGIN = PIXEL_FORMAT_INDEX8,
+	PIXEL_FORMAT_GRPH_END = PIXEL_FORMAT_FP16,
+	PIXEL_FORMAT_VIDEO_BEGIN = PIXEL_FORMAT_420BPP12,
+	PIXEL_FORMAT_VIDEO_END = PIXEL_FORMAT_420BPP12,
+	PIXEL_FORMAT_UNKNOWN
+};
+
 enum tile_split_values {
 	DC_DISPLAY_MICRO_TILING = 0x0,
 	DC_THIN_MICRO_TILING = 0x1,
@@ -321,28 +343,6 @@ struct dc_cursor_attributes {
 	union dc_cursor_attribute_flags attribute_flags;
 };
 
-/* Pixel format */
-enum pixel_format {
-	/*graph*/
-	PIXEL_FORMAT_UNINITIALIZED,
-	PIXEL_FORMAT_INDEX8,
-	PIXEL_FORMAT_RGB565,
-	PIXEL_FORMAT_ARGB8888,
-	PIXEL_FORMAT_ARGB2101010,
-	PIXEL_FORMAT_ARGB2101010_XRBIAS,
-	PIXEL_FORMAT_FP16,
-	/*video*/
-	PIXEL_FORMAT_420BPP12,
-	/*end of pixel format definition*/
-	PIXEL_FORMAT_INVALID,
-
-	PIXEL_FORMAT_GRPH_BEGIN = PIXEL_FORMAT_INDEX8,
-	PIXEL_FORMAT_GRPH_END = PIXEL_FORMAT_FP16,
-	PIXEL_FORMAT_VIDEO_BEGIN = PIXEL_FORMAT_420BPP12,
-	PIXEL_FORMAT_VIDEO_END = PIXEL_FORMAT_420BPP12,
-	PIXEL_FORMAT_UNKNOWN
-};
-
 /* OPP */
 enum dc_pixel_encoding {
 	PIXEL_ENCODING_UNDEFINED,
diff --git a/drivers/gpu/drm/amd/dal/include/video_csc_types.h b/drivers/gpu/drm/amd/dal/include/video_csc_types.h
index 58dcc04..85619fc 100644
--- a/drivers/gpu/drm/amd/dal/include/video_csc_types.h
+++ b/drivers/gpu/drm/amd/dal/include/video_csc_types.h
@@ -81,30 +81,5 @@ union ovl_csc_flag {
 	} bits;
 };
 
-struct ovl_csc_adjustment {
-	struct ovl_color_adjust_option ovl_option;
-	enum dc_color_depth display_color_depth;
-	uint32_t lb_color_depth;
-	enum pixel_format desktop_surface_pixel_format;
-	enum ovl_surface_format ovl_sf;
-	/* API adjustment */
-	struct overlay_adjust_item overlay_brightness;
-	struct overlay_adjust_item overlay_gamma;
-	struct overlay_adjust_item overlay_contrast;
-	struct overlay_adjust_item overlay_saturation;
-	struct overlay_adjust_item overlay_hue; /* unit in degree from API. */
-	int32_t f_temperature[TEMPERATURE_MATRIX_SIZE];
-	uint32_t temperature_divider;
-	/* OEM/Application matrix related. */
-	int32_t matrix[MAXTRIX_SIZE_WITH_OFFSET];
-	uint32_t matrix_divider;
-
-	/* DCE50 parameters */
-	enum overlay_gamma_adjust adjust_gamma_type;
-	enum overlay_csc_adjust_type adjust_csc_type;
-	enum overlay_gamut_adjust_type adjust_gamut_type;
-	union ovl_csc_flag flag;
-
-};
 
 #endif
-- 
2.7.4