Skip to content

Commit 6f68294

Browse files
cwabbott0robclark
authored andcommitted
drm/msm: Fix UBWC macrotile_mode for a680
Make it match the MDSS settings for sc8180x and downstream. Note that without the previous commit that exposes the value of macrotile_mode to mesa, this will break mesa which expects the legacy default value of 0. Therefore we do *not* want to backport it. Signed-off-by: Connor Abbott <cwabbott0@gmail.com> Patchwork: https://patchwork.freedesktop.org/patch/607398/ Signed-off-by: Rob Clark <robdclark@chromium.org>
1 parent d7eafed commit 6f68294

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/gpu/drm/msm/adreno/a6xx_gpu.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,9 @@ static void a6xx_calc_ubwc_config(struct adreno_gpu *gpu)
519519
if (adreno_is_a640_family(gpu))
520520
gpu->ubwc_config.amsbc = 1;
521521

522+
if (adreno_is_a680(gpu))
523+
gpu->ubwc_config.macrotile_mode = 1;
524+
522525
if (adreno_is_a650(gpu) ||
523526
adreno_is_a660(gpu) ||
524527
adreno_is_a690(gpu) ||

0 commit comments

Comments
 (0)