[PATCH v4 2/4] drm/msm/dpu: use dpu core's major version to enable data compress
Dmitry Baryshkov
dmitry.baryshkov at linaro.org
Wed Jul 12 00:37:29 UTC 2023
On 12/07/2023 03:33, Abhinav Kumar wrote:
> Instead of using a feature bit to decide whether to enable data
> compress or not for DSC use-cases, use dpu core's major version
> instead by assigning the enable_compression op based on the
> dpu core's major version.
>
> To make this possible pass the struct dpu_mdss_version to
> dpu_hw_intf_init().
>
> This will avoid defining feature bits for every bit level details of
> registers.
>
> changes in v4:
> - split renaming of enable_compression into another change
> - pass struct dpu_mdss_version to dpu_hw_intf_init() to
> assign the enable_compression op based on dpu's core revision
>
> Signed-off-by: Abhinav Kumar <quic_abhinavk at quicinc.com>
> ---
> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c | 8 ++++----
> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.h | 3 ++-
> drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 2 +-
> 3 files changed, 7 insertions(+), 6 deletions(-)
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov at linaro.org>
--
With best wishes
Dmitry
More information about the dri-devel
mailing list