9a88afecbd
Generalization for the following: 1. pass in the scaler output alignment requirement to segment number determination function 2. parameter validation hook Signed-off-by: Navid Assadian <Navid.Assadian@amd.com> Reviewed-by: Roy Chan <Roy.Chan@amd.com> Reviewed-by: Jesse Agate <Jesse.Agate@amd.com> Acked-by: Alan Liu <Haoping.Liu@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33833>