mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-18 08:06:35 +07:00
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 <Igor.Kravchenko@amd.com> Reviewed-by: Aric Cyr <Aric.Cyr@amd.com> Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
e10517b3cb
commit
3b26ca2db3
@ -96,6 +96,9 @@ struct dc_plane_cap {
|
||||
uint32_t nv12;
|
||||
uint32_t fp16;
|
||||
} max_downscale_factor;
|
||||
// minimal width/height
|
||||
uint32_t min_width;
|
||||
uint32_t min_height;
|
||||
};
|
||||
|
||||
// Color management caps (DPP and MPC)
|
||||
|
@ -423,7 +423,9 @@ static const struct dc_plane_cap plane_cap = {
|
||||
.argb8888 = 250,
|
||||
.nv12 = 1,
|
||||
.fp16 = 1
|
||||
}
|
||||
},
|
||||
64,
|
||||
64
|
||||
};
|
||||
|
||||
static const struct dc_plane_cap underlay_plane_cap = {
|
||||
@ -447,7 +449,9 @@ static const struct dc_plane_cap underlay_plane_cap = {
|
||||
.argb8888 = 1,
|
||||
.nv12 = 250,
|
||||
.fp16 = 1
|
||||
}
|
||||
},
|
||||
64,
|
||||
64
|
||||
};
|
||||
|
||||
#define CTX ctx
|
||||
|
@ -424,7 +424,9 @@ static const struct dc_plane_cap plane_cap = {
|
||||
.argb8888 = 250,
|
||||
.nv12 = 1,
|
||||
.fp16 = 1
|
||||
}
|
||||
},
|
||||
64,
|
||||
64
|
||||
};
|
||||
|
||||
#define CTX ctx
|
||||
|
@ -1043,7 +1043,9 @@ static const struct dc_plane_cap plane_cap = {
|
||||
.argb8888 = 250,
|
||||
.nv12 = 250,
|
||||
.fp16 = 1
|
||||
}
|
||||
},
|
||||
16,
|
||||
16
|
||||
};
|
||||
static const struct resource_caps res_cap_nv14 = {
|
||||
.num_timing_generator = 5,
|
||||
|
@ -857,7 +857,9 @@ static const struct dc_plane_cap plane_cap = {
|
||||
.argb8888 = 250,
|
||||
.nv12 = 250,
|
||||
.fp16 = 250
|
||||
}
|
||||
},
|
||||
64,
|
||||
64
|
||||
};
|
||||
|
||||
static const struct dc_debug_options debug_defaults_drv = {
|
||||
|
Loading…
Reference in New Issue
Block a user