From 34404c2df2c3ddba7621cd5054dd975ceb1b8fe1 Mon Sep 17 00:00:00 2001 From: "Rouf, Farhan" Date: Fri, 20 Mar 2026 13:53:12 -0400 Subject: [PATCH] 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 Signed-off-by: Farhan Rouf Part-of: --- src/amd/vpelib/src/chip/vpe20/vpe20_resource.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/amd/vpelib/src/chip/vpe20/vpe20_resource.c b/src/amd/vpelib/src/chip/vpe20/vpe20_resource.c index e4d84e5be79..a1ec083a909 100644 --- a/src/amd/vpelib/src/chip/vpe20/vpe20_resource.c +++ b/src/amd/vpelib/src/chip/vpe20/vpe20_resource.c @@ -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;