]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
drm/amd/display: Reorganize dwb header
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Wed, 27 Mar 2024 15:41:41 +0000 (09:41 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 12 Apr 2024 04:36:27 +0000 (00:36 -0400)
This commit makes some small adjustments in the dwb header.

Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/inc/hw/dwb.h

index 729ca0064e94d57aa8dc81354edce94bb1395bd3..063efc8128a7fd169884d27f28897cacf2e63ee0 100644 (file)
@@ -147,9 +147,10 @@ struct dwb_caps {
                unsigned int support_ogam       :1;
                unsigned int support_wbscl      :1;
                unsigned int support_ocsc       :1;
-               unsigned int support_stereo :1;
+               unsigned int support_stereo     :1;
+               unsigned int support_4k_120p    :1;
        } caps;
-       unsigned int     reserved2[9];  /* Reserved for future use, MUST BE 0. */
+       unsigned int     reserved2[10]; /* Reserved for future use, MUST BE 0. */
 };
 
 struct dwbc {
@@ -166,8 +167,9 @@ struct dwbc {
        bool dwb_is_drc;
        int wb_src_plane_inst;/*hubp, mpcc, inst*/
        uint32_t mask_id;
-    int otg_inst;
-    bool mvc_cfg;
+       int otg_inst;
+       bool mvc_cfg;
+       struct dc_dwb_params params;
 };
 
 struct dwbc_funcs {
@@ -192,6 +194,10 @@ struct dwbc_funcs {
                struct dwbc *dwbc,
                enum dwb_frame_capture_enable enable);
 
+       void (*dwb_set_scaler)(
+               struct dwbc *dwbc,
+               struct dc_dwb_params *params);
+
        void (*set_stereo)(
                struct dwbc *dwbc,
                struct dwb_stereo_params *stereo_params);
@@ -205,9 +211,11 @@ struct dwbc_funcs {
                struct dwbc *dwbc,
                struct dwb_warmup_params *warmup_params);
 
-
+       bool (*dwb_get_mcifbuf_line)(
+               struct dwbc *dwbc, unsigned int *buf_idx,
+               unsigned int *cur_line,
+               unsigned int *over_run);
 #if defined(CONFIG_DRM_AMD_DC_FP)
-
        void (*dwb_program_output_csc)(
                struct dwbc *dwbc,
                enum dc_color_space color_space,
@@ -216,17 +224,17 @@ struct dwbc_funcs {
        bool (*dwb_ogam_set_output_transfer_func)(
                struct dwbc *dwbc,
                const struct dc_transfer_func *in_transfer_func_dwb_ogam);
-
+#endif
        //TODO: merge with output_transfer_func?
        bool (*dwb_ogam_set_input_transfer_func)(
                struct dwbc *dwbc,
                const struct dc_transfer_func *in_transfer_func_dwb_ogam);
-#endif
+
+       void (*get_drr_time_stamp)(
+               struct dwbc *dwbc, uint32_t *time_stamp);
+
        bool (*get_dwb_status)(
                struct dwbc *dwbc);
-       void (*dwb_set_scaler)(
-               struct dwbc *dwbc,
-               struct dc_dwb_params *params);
 };
 
 #endif