mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
drm/msm/mdss: use new helper to set ubwc_swizzle
Use freshly defined helper instead of using the raw value from the database. Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Patchwork: https://patchwork.freedesktop.org/patch/726516/ Link: https://lore.kernel.org/r/20260520-ubwc-rework-v5-14-72f2749bc807@oss.qualcomm.com
This commit is contained in:
parent
d7c0878bbd
commit
86ec9084a2
|
|
@ -169,7 +169,8 @@ static int _msm_mdss_irq_domain_add(struct msm_mdss *msm_mdss)
|
|||
static void msm_mdss_4x_setup_ubwc(struct msm_mdss *msm_mdss)
|
||||
{
|
||||
const struct qcom_ubwc_cfg_data *data = msm_mdss->mdss_data;
|
||||
u32 value = MDSS_UBWC_STATIC_UBWC_SWIZZLE(data->ubwc_swizzle & 0x1) |
|
||||
u32 value = MDSS_UBWC_STATIC_UBWC_SWIZZLE(qcom_ubwc_swizzle(data) &
|
||||
UBWC_SWIZZLE_ENABLE_LVL1) |
|
||||
MDSS_UBWC_STATIC_HIGHEST_BANK_BIT(data->highest_bank_bit - 13);
|
||||
|
||||
value |= MDSS_UBWC_STATIC_UBWC_MIN_ACC_LEN(qcom_ubwc_min_acc_length_64b(data));
|
||||
|
|
@ -180,7 +181,8 @@ static void msm_mdss_4x_setup_ubwc(struct msm_mdss *msm_mdss)
|
|||
static void msm_mdss_5x_setup_ubwc(struct msm_mdss *msm_mdss)
|
||||
{
|
||||
const struct qcom_ubwc_cfg_data *data = msm_mdss->mdss_data;
|
||||
u32 value = MDSS_UBWC_STATIC_UBWC_SWIZZLE(data->ubwc_swizzle & 0x1) |
|
||||
u32 value = MDSS_UBWC_STATIC_UBWC_SWIZZLE(qcom_ubwc_swizzle(data) &
|
||||
UBWC_SWIZZLE_ENABLE_LVL1) |
|
||||
MDSS_UBWC_STATIC_HIGHEST_BANK_BIT(data->highest_bank_bit - 13);
|
||||
|
||||
if (qcom_ubwc_macrotile_mode(data))
|
||||
|
|
@ -197,7 +199,7 @@ static void msm_mdss_5x_setup_ubwc(struct msm_mdss *msm_mdss)
|
|||
static void msm_mdss_6x_setup_ubwc(struct msm_mdss *msm_mdss)
|
||||
{
|
||||
const struct qcom_ubwc_cfg_data *data = msm_mdss->mdss_data;
|
||||
u32 value = MDSS_UBWC_STATIC_UBWC_SWIZZLE(data->ubwc_swizzle) |
|
||||
u32 value = MDSS_UBWC_STATIC_UBWC_SWIZZLE(qcom_ubwc_swizzle(data)) |
|
||||
MDSS_UBWC_STATIC_HIGHEST_BANK_BIT(data->highest_bank_bit - 13);
|
||||
u32 prediction_mode;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user