amd/vpelib: Introduced reset to frontend

Add a reset mechanism in the frontend to fix artifacts caused by improper disablement affecting subsequent blending. Perform reset and configuration only when necessary, keeping behavior consistent with the frontend.

Acked-by: Peyton Lee <peytolee@amd.com>
Signed-off-by: Farhan Rouf <Farhan.Rouf@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/42033>
This commit is contained in:
Rouf, Farhan 2026-03-20 13:53:12 -04:00 committed by Marge Bot
parent 25d2f09e9e
commit 34404c2df2

View file

@ -2099,6 +2099,9 @@ int32_t vpe20_program_frontend(struct vpe_priv* vpe_priv, uint32_t pipe_idx, uin
// Always Bypass Post-Blend Gamut Remap
mpc->funcs->set_gamut_remap2(mpc, NULL, VPE_MPC_GAMUT_REMAP);
// Disable unused gamma blocks to prevent corruption
mpc->funcs->set_output_gamma(mpc, NULL);
// program hdr_mult
fmt.exponenta_bits = 6;
fmt.mantissa_bits = 12;