]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/amd/display: move definition of dc_flip_addrs struct
authorJosip Pavic <Josip.Pavic@amd.com>
Thu, 28 Apr 2022 21:01:33 +0000 (17:01 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 May 2022 21:53:12 +0000 (17:53 -0400)
[Why & How]
Move definition of dc_flip_addrs struct from dc.h to dc_hw_types.h to
prevent build errors

Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Stylon Wang <stylon.wang@amd.com>
Signed-off-by: Josip Pavic <Josip.Pavic@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dc_hw_types.h

index 942bfb8fd85178b58d6bf4868e5bc6d313cab49d..e37d9c19f089115e54105cff6bf44e3df88aae97 100644 (file)
@@ -1129,18 +1129,6 @@ struct dc_transfer_func *dc_create_transfer_func(void);
 struct dc_3dlut *dc_create_3dlut_func(void);
 void dc_3dlut_func_release(struct dc_3dlut *lut);
 void dc_3dlut_func_retain(struct dc_3dlut *lut);
-/*
- * This structure holds a surface address.  There could be multiple addresses
- * in cases such as Stereo 3D, Planar YUV, etc.  Other per-flip attributes such
- * as frame durations and DCC format can also be set.
- */
-struct dc_flip_addrs {
-       struct dc_plane_address address;
-       unsigned int flip_timestamp_in_us;
-       bool flip_immediate;
-       /* TODO: add flip duration for FreeSync */
-       bool triplebuffer_flips;
-};
 
 void dc_post_update_surfaces_to_stream(
                struct dc *dc);
index 0c754cb0459e38bcabd0f427cf5c0848104d70ee..aa7e3a07191d993b28a397d1aa53f50a259f57cd 100644 (file)
@@ -236,6 +236,22 @@ enum pixel_format {
        PIXEL_FORMAT_UNKNOWN
 };
 
+/*
+ * This structure holds a surface address.  There could be multiple addresses
+ * in cases such as Stereo 3D, Planar YUV, etc.  Other per-flip attributes such
+ * as frame durations and DCC format can also be set.
+ */
+#define DC_MAX_DIRTY_RECTS 3
+struct dc_flip_addrs {
+       struct dc_plane_address address;
+       unsigned int flip_timestamp_in_us;
+       bool flip_immediate;
+       /* TODO: add flip duration for FreeSync */
+       bool triplebuffer_flips;
+       unsigned int dirty_rect_count;
+       struct rect dirty_rects[DC_MAX_DIRTY_RECTS];
+};
+
 enum tile_split_values {
        DC_DISPLAY_MICRO_TILING = 0x0,
        DC_THIN_MICRO_TILING = 0x1,