mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
drm/msm/adreno: 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> Reviewed-by: Akhil P Oommen <akhilpo@oss.qualcomm.com> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Patchwork: https://patchwork.freedesktop.org/patch/726498/ Link: https://lore.kernel.org/r/20260520-ubwc-rework-v5-12-72f2749bc807@oss.qualcomm.com
This commit is contained in:
parent
618cabd0fd
commit
d2fb237276
|
|
@ -745,7 +745,7 @@ static void a6xx_set_ubwc_config(struct msm_gpu *gpu)
|
|||
BUG_ON(cfg->highest_bank_bit < 13);
|
||||
u32 hbb = cfg->highest_bank_bit - 13;
|
||||
bool rgb565_predicator = cfg->ubwc_enc_version >= UBWC_4_0;
|
||||
u32 level2_swizzling_dis = !(cfg->ubwc_swizzle & UBWC_SWIZZLE_ENABLE_LVL2);
|
||||
u32 level2_swizzling_dis = !(qcom_ubwc_swizzle(cfg) & UBWC_SWIZZLE_ENABLE_LVL2);
|
||||
bool ubwc_mode = qcom_ubwc_get_ubwc_mode(cfg);
|
||||
bool amsbc = cfg->ubwc_enc_version >= UBWC_3_0;
|
||||
bool min_acc_len_64b;
|
||||
|
|
|
|||
|
|
@ -275,8 +275,8 @@ static void a8xx_set_ubwc_config(struct msm_gpu *gpu)
|
|||
{
|
||||
struct adreno_gpu *adreno_gpu = to_adreno_gpu(gpu);
|
||||
const struct qcom_ubwc_cfg_data *cfg = adreno_gpu->ubwc_config;
|
||||
u32 level2_swizzling_dis = !(cfg->ubwc_swizzle & UBWC_SWIZZLE_ENABLE_LVL2);
|
||||
u32 level3_swizzling_dis = !(cfg->ubwc_swizzle & UBWC_SWIZZLE_ENABLE_LVL3);
|
||||
u32 level2_swizzling_dis = !(qcom_ubwc_swizzle(cfg) & UBWC_SWIZZLE_ENABLE_LVL2);
|
||||
u32 level3_swizzling_dis = !(qcom_ubwc_swizzle(cfg) & UBWC_SWIZZLE_ENABLE_LVL3);
|
||||
bool rgba8888_lossless = false, fp16compoptdis = false;
|
||||
bool yuvnotcomptofc = false, min_acc_len_64b = false;
|
||||
bool rgb565_predicator = false, amsbc = false;
|
||||
|
|
|
|||
|
|
@ -434,7 +434,7 @@ int adreno_get_param(struct msm_gpu *gpu, struct msm_context *ctx,
|
|||
case MSM_PARAM_UBWC_SWIZZLE:
|
||||
if (!adreno_gpu->ubwc_config)
|
||||
return UERR(ENOENT, drm, "no UBWC on this platform");
|
||||
*value = adreno_gpu->ubwc_config->ubwc_swizzle;
|
||||
*value = qcom_ubwc_swizzle(adreno_gpu->ubwc_config);
|
||||
return 0;
|
||||
case MSM_PARAM_MACROTILE_MODE:
|
||||
if (!adreno_gpu->ubwc_config)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user