mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-17 04:28:28 +02:00
amd/vpelib: add a new cap to differentiate scaler coeff handling
[Why] Issue found when playing video with GDS. The caller doesn't know if external coefficient should be generated or not. To match mm shader handling, it was using external coefficients. New policy is to follow shared scaler handling with DCN. [How] - Introduce a new cap to tell if it is preferred to have external coefficients. - For Scaling limit, as supporting 6:1 was not conclusive with GDS, It is going to have the same behavior as before - 4:1 Acked-by: Chuanyu Tseng <Chuanyu.Tseng@amd.com> Signed-off-by: Roy Chan <roy.chan@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40210>
This commit is contained in:
parent
7d5aeda5ff
commit
f1ff697dbe
3 changed files with 8 additions and 0 deletions
|
|
@ -237,6 +237,8 @@ struct vpe_caps {
|
|||
uint32_t is_apu : 1; /**< is APU */
|
||||
uint32_t bg_color_check_support : 1; /**< background color check support */
|
||||
|
||||
uint32_t prefer_external_scaler_coef : 1; /**< prefer external scaler coeff */
|
||||
|
||||
/** resource capability */
|
||||
struct {
|
||||
uint32_t num_dpp; /**< num of dpp */
|
||||
|
|
|
|||
|
|
@ -149,6 +149,9 @@ static struct vpe_caps
|
|||
.v_mirror_support = 0,
|
||||
.is_apu = 1,
|
||||
.bg_color_check_support = 0,
|
||||
|
||||
.prefer_external_scaler_coef = 1,
|
||||
|
||||
.resource_caps =
|
||||
{
|
||||
.num_dpp = 1,
|
||||
|
|
|
|||
|
|
@ -86,6 +86,9 @@ static struct vpe_caps
|
|||
.v_mirror_support = 0,
|
||||
.is_apu = 1,
|
||||
.bg_color_check_support = 0,
|
||||
|
||||
.prefer_external_scaler_coef = 1,
|
||||
|
||||
.resource_caps =
|
||||
{
|
||||
.num_dpp = 1,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue