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:
Chan, Roy 2025-12-09 20:07:36 -05:00 committed by Chuanyu Tseng
parent 7d5aeda5ff
commit f1ff697dbe
3 changed files with 8 additions and 0 deletions

View file

@ -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 */

View file

@ -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,

View file

@ -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,