]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
drm/amd/display: clean up header file includes
authorYue Hin Lau <Yuehin.Lau@amd.com>
Fri, 25 Aug 2017 20:13:55 +0000 (16:13 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:17:13 +0000 (18:17 -0400)
Signed-off-by: Yue Hin Lau <Yuehin.Lau@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp_cm.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp_dscl.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_ipp.c

index 20163668e2a8b3eb4a51e1f63f61cfd1b5a35bdb..99caafb27b37564afe3f1128e8da0ee90b367d7a 100644 (file)
 
 #include "core_types.h"
 
-#include "include/grph_object_id.h"
-#include "include/fixed31_32.h"
-#include "include/logger_interface.h"
-
 #include "reg_helper.h"
 #include "dcn10_dpp.h"
 #include "basics/conversion.h"
@@ -68,22 +64,6 @@ enum dcn10_coef_filter_type_sel {
        SCL_COEF_ALPHA_HORZ_FILTER = 5
 };
 
-enum lb_memory_config {
-       /* Enable all 3 pieces of memory */
-       LB_MEMORY_CONFIG_0 = 0,
-
-       /* Enable only the first piece of memory */
-       LB_MEMORY_CONFIG_1 = 1,
-
-       /* Enable only the second piece of memory */
-       LB_MEMORY_CONFIG_2 = 2,
-
-       /* Only applicable in 4:2:0 mode, enable all 3 pieces of memory and the
-        * last piece of chroma memory used for the luma storage
-        */
-       LB_MEMORY_CONFIG_3 = 3
-};
-
 enum dscl_autocal_mode {
        AUTOCAL_MODE_OFF = 0,
 
index 409462f29f54aae4c1e297dce48b1a5c6ba00c0f..81620241a978b6a593c53afc65ae5b34f1fbe342 100644 (file)
 
 #include "core_types.h"
 
-#include "include/grph_object_id.h"
-#include "include/fixed31_32.h"
-#include "include/logger_interface.h"
-
 #include "reg_helper.h"
 #include "dcn10_dpp.h"
 #include "basics/conversion.h"
@@ -66,22 +62,6 @@ enum dcn10_coef_filter_type_sel {
        SCL_COEF_ALPHA_HORZ_FILTER = 5
 };
 
-enum lb_memory_config {
-       /* Enable all 3 pieces of memory */
-       LB_MEMORY_CONFIG_0 = 0,
-
-       /* Enable only the first piece of memory */
-       LB_MEMORY_CONFIG_1 = 1,
-
-       /* Enable only the second piece of memory */
-       LB_MEMORY_CONFIG_2 = 2,
-
-       /* Only applicable in 4:2:0 mode, enable all 3 pieces of memory and the
-        * last piece of chroma memory used for the luma storage
-        */
-       LB_MEMORY_CONFIG_3 = 3
-};
-
 enum dscl_autocal_mode {
        AUTOCAL_MODE_OFF = 0,
 
index 14c3b330b27b3c25723229d15e46db4d57c9e4a1..b62cb38f523c1157b14b1c827156a519d84b0e7f 100644 (file)
@@ -100,14 +100,6 @@ enum dscl_mode_sel {
        DSCL_MODE_DSCL_BYPASS = 6
 };
 
-enum gamut_remap_select {
-       GAMUT_REMAP_BYPASS = 0,
-       GAMUT_REMAP_COEFF,
-       GAMUT_REMAP_COMA_COEFF,
-       GAMUT_REMAP_COMB_COEFF
-};
-
-
 static void dpp_set_overscan(
        struct dcn10_dpp *xfm,
        const struct scaler_data *data)
index bc98279675350b0a15e642d95c009297015eb72a..5edc4b7073e1df99e7bad98970971b8834c9bbfe 100644 (file)
 #define CTX \
        ippn10->base.ctx
 
-
-struct dcn10_input_csc_matrix {
-       enum dc_color_space color_space;
-       uint32_t regval[12];
-};
-
-static const struct dcn10_input_csc_matrix dcn10_input_csc_matrix[] = {
-       {COLOR_SPACE_SRGB,
-               {0x2000, 0, 0, 0, 0, 0x2000, 0, 0, 0, 0, 0x2000, 0} },
-       {COLOR_SPACE_SRGB_LIMITED,
-               {0x2000, 0, 0, 0, 0, 0x2000, 0, 0, 0, 0, 0x2000, 0} },
-       {COLOR_SPACE_YCBCR601,
-               {0x2cdd, 0x2000, 0, 0xe991, 0xe926, 0x2000, 0xf4fd, 0x10ef,
-                                               0, 0x2000, 0x38b4, 0xe3a6} },
-       {COLOR_SPACE_YCBCR601_LIMITED,
-               {0x3353, 0x2568, 0, 0xe400, 0xe5dc, 0x2568, 0xf367, 0x1108,
-                                               0, 0x2568, 0x40de, 0xdd3a} },
-       {COLOR_SPACE_YCBCR709,
-               {0x3265, 0x2000, 0, 0xe6ce, 0xf105, 0x2000, 0xfa01, 0xa7d, 0,
-                                               0x2000, 0x3b61, 0xe24f} },
-
-       {COLOR_SPACE_YCBCR709_LIMITED,
-               {0x39a6, 0x2568, 0, 0xe0d6, 0xeedd, 0x2568, 0xf925, 0x9a8, 0,
-                                               0x2568, 0x43ee, 0xdbb2} }
-};
-
-enum dcn10_input_csc_select {
-       INPUT_CSC_SELECT_BYPASS = 0,
-       INPUT_CSC_SELECT_ICSC,
-       INPUT_CSC_SELECT_COMA
-};
-
-
-
 static bool ippn10_cursor_program_control(
                struct dcn10_ipp *ippn10,
                bool pixel_data_invert,
@@ -255,13 +221,6 @@ static void ippn10_cursor_set_position(
        /* TODO Handle surface pixel formats other than 4:4:4 */
 }
 
-enum pixel_format_description {
-       PIXEL_FORMAT_FIXED = 0,
-       PIXEL_FORMAT_FIXED16,
-       PIXEL_FORMAT_FLOAT
-
-};
-
 /*****************************************/
 /* Constructor, Destructor               */
 /*****************************************/