Skip to content

Commit b4387ea

Browse files
fltorobclark
authored andcommitted
drm/msm/a6xx: fix incorrectly set uavflagprd_inv field for A650
Value was shifted in the wrong direction, resulting in the field always being zero, which is incorrect for A650. Fixes: d0bac4e ("drm/msm/a6xx: set ubwc config for A640 and A650") Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Akhil P Oommen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Clark <[email protected]>
1 parent 4084340 commit b4387ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ static void a6xx_set_ubwc_config(struct msm_gpu *gpu)
596596
rgb565_predicator << 11 | amsbc << 4 | lower_bit << 1);
597597
gpu_write(gpu, REG_A6XX_TPL1_NC_MODE_CNTL, lower_bit << 1);
598598
gpu_write(gpu, REG_A6XX_SP_NC_MODE_CNTL,
599-
uavflagprd_inv >> 4 | lower_bit << 1);
599+
uavflagprd_inv << 4 | lower_bit << 1);
600600
gpu_write(gpu, REG_A6XX_UCHE_MODE_CNTL, lower_bit << 21);
601601
}
602602

0 commit comments

Comments
 (0)