Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: move definition of dc_flip_addrs struct

[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>

authored by

Josip Pavic and committed by
Alex Deucher
86edfc0d 99c04671

+16 -12
-12
drivers/gpu/drm/amd/display/dc/dc.h
··· 1129 1129 struct dc_3dlut *dc_create_3dlut_func(void); 1130 1130 void dc_3dlut_func_release(struct dc_3dlut *lut); 1131 1131 void dc_3dlut_func_retain(struct dc_3dlut *lut); 1132 - /* 1133 - * This structure holds a surface address. There could be multiple addresses 1134 - * in cases such as Stereo 3D, Planar YUV, etc. Other per-flip attributes such 1135 - * as frame durations and DCC format can also be set. 1136 - */ 1137 - struct dc_flip_addrs { 1138 - struct dc_plane_address address; 1139 - unsigned int flip_timestamp_in_us; 1140 - bool flip_immediate; 1141 - /* TODO: add flip duration for FreeSync */ 1142 - bool triplebuffer_flips; 1143 - }; 1144 1132 1145 1133 void dc_post_update_surfaces_to_stream( 1146 1134 struct dc *dc);
+16
drivers/gpu/drm/amd/display/dc/dc_hw_types.h
··· 236 236 PIXEL_FORMAT_UNKNOWN 237 237 }; 238 238 239 + /* 240 + * This structure holds a surface address. There could be multiple addresses 241 + * in cases such as Stereo 3D, Planar YUV, etc. Other per-flip attributes such 242 + * as frame durations and DCC format can also be set. 243 + */ 244 + #define DC_MAX_DIRTY_RECTS 3 245 + struct dc_flip_addrs { 246 + struct dc_plane_address address; 247 + unsigned int flip_timestamp_in_us; 248 + bool flip_immediate; 249 + /* TODO: add flip duration for FreeSync */ 250 + bool triplebuffer_flips; 251 + unsigned int dirty_rect_count; 252 + struct rect dirty_rects[DC_MAX_DIRTY_RECTS]; 253 + }; 254 + 239 255 enum tile_split_values { 240 256 DC_DISPLAY_MICRO_TILING = 0x0, 241 257 DC_THIN_MICRO_TILING = 0x1,