amd/vpelib: remove luma offset (#459)

\[WHY\]
Shader and VPE does not apply brightness adjs in the same manner

\[HOW\]
Removed luma offset added in VPE

\[TESTING\]
Tested on real time video rendering

Co-authored-by: Tiberiu Visan <tvisan@amd.com>
Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
Reviewed-by: Navid Assadian <Navid.Assadian@amd.com>
Acked-by: Chenyu Chen <Chen-Yu.Chen@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32075>
This commit is contained in:
Visan, Tiberiu 2024-10-24 13:56:19 -04:00 committed by Chenyu Chen
parent 2172ab2c2a
commit d379a3a428

View file

@ -625,7 +625,6 @@ static void calculate_yuv_matrix(struct vpe_color_adjustments *vpe_adjust,
color_adjustments_to_fixed_point(
vpe_adjust, ovl, &grph_cont, &grph_sat, &grph_bright, &sin_grph_hue, &cos_grph_hue);
grph_bright = vpe_fixpt_sub(grph_bright, lumaOffset);
multiplier = vpe_fixpt_mul(grph_cont, grph_sat); // contSat