]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/msm/adreno: set fp16compoptdis for UBWC 3.0 formats
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Wed, 20 May 2026 14:51:23 +0000 (17:51 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Fri, 22 May 2026 13:43:13 +0000 (16:43 +0300)
The fp16compoptdis bit should be set if the system targets UBWC 3.0
format in addition to UBWC 4.0.

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/726507/
Link: https://lore.kernel.org/r/20260520-ubwc-rework-v5-16-72f2749bc807@oss.qualcomm.com
drivers/gpu/drm/msm/adreno/a8xx_gpu.c

index 7a6223ddd8cf6793108db180756ff8b158834a1d..867c7d05f670ece036feac0c596a2d2202139ab2 100644 (file)
@@ -303,6 +303,7 @@ static void a8xx_set_ubwc_config(struct msm_gpu *gpu)
                break;
        case UBWC_3_0:
                amsbc = true;
+               fp16compoptdis = true;
                break;
        default:
                dev_err(&gpu->pdev->dev, "Unknown UBWC version: 0x%x\n", ubwc_version);