Skip to content

Commit 3b26ca2

Browse files
Igor Kravchenkoalexdeucher
authored andcommitted
drm/amd/display: interface to obtain minimum plane size caps
[Why] Implement an interface to obtain plane size caps [How] Add min_width, min_height fields to dc_plane_cap structure. Set values to 16x16 for discrete ASICs, and 64x64 for others. Signed-off-by: Igor Kravchenko <[email protected]> Reviewed-by: Aric Cyr <[email protected]> Acked-by: Qingqing Zhuo <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent e10517b commit 3b26ca2

File tree

5 files changed

+18
-5
lines changed

5 files changed

+18
-5
lines changed

drivers/gpu/drm/amd/display/dc/dc.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ struct dc_plane_cap {
9696
uint32_t nv12;
9797
uint32_t fp16;
9898
} max_downscale_factor;
99+
// minimal width/height
100+
uint32_t min_width;
101+
uint32_t min_height;
99102
};
100103

101104
// Color management caps (DPP and MPC)

drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,9 @@ static const struct dc_plane_cap plane_cap = {
423423
.argb8888 = 250,
424424
.nv12 = 1,
425425
.fp16 = 1
426-
}
426+
},
427+
64,
428+
64
427429
};
428430

429431
static const struct dc_plane_cap underlay_plane_cap = {
@@ -447,7 +449,9 @@ static const struct dc_plane_cap underlay_plane_cap = {
447449
.argb8888 = 1,
448450
.nv12 = 250,
449451
.fp16 = 1
450-
}
452+
},
453+
64,
454+
64
451455
};
452456

453457
#define CTX ctx

drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,9 @@ static const struct dc_plane_cap plane_cap = {
424424
.argb8888 = 250,
425425
.nv12 = 1,
426426
.fp16 = 1
427-
}
427+
},
428+
64,
429+
64
428430
};
429431

430432
#define CTX ctx

drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,9 @@ static const struct dc_plane_cap plane_cap = {
10431043
.argb8888 = 250,
10441044
.nv12 = 250,
10451045
.fp16 = 1
1046-
}
1046+
},
1047+
16,
1048+
16
10471049
};
10481050
static const struct resource_caps res_cap_nv14 = {
10491051
.num_timing_generator = 5,

drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,9 @@ static const struct dc_plane_cap plane_cap = {
857857
.argb8888 = 250,
858858
.nv12 = 250,
859859
.fp16 = 250
860-
}
860+
},
861+
64,
862+
64
861863
};
862864

863865
static const struct dc_debug_options debug_defaults_drv = {

0 commit comments

Comments
 (0)