It's unused.

Signed-off-by: Sean Paul <seanp...@chromium.org>
---
 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c | 32 ---------------------
 1 file changed, 32 deletions(-)

diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c 
b/drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
index 12dc6a9d3b25..44fefc97e1b3 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
+++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
@@ -1092,38 +1092,6 @@ int dpu_format_populate_layout(
        return ret;
 }
 
-static void _dpu_format_calc_offset_linear(struct dpu_hw_fmt_layout *source,
-               u32 x, u32 y)
-{
-       if ((x == 0) && (y == 0))
-               return;
-
-       source->plane_addr[0] += y * source->plane_pitch[0];
-
-       if (source->num_planes == 1) {
-               source->plane_addr[0] += x * source->format->bpp;
-       } else {
-               uint32_t xoff, yoff;
-               uint32_t v_subsample = 1;
-               uint32_t h_subsample = 1;
-
-               _dpu_get_v_h_subsample_rate(source->format->chroma_sample,
-                               &v_subsample, &h_subsample);
-
-               xoff = x / h_subsample;
-               yoff = y / v_subsample;
-
-               source->plane_addr[0] += x;
-               source->plane_addr[1] += xoff +
-                               (yoff * source->plane_pitch[1]);
-               if (source->num_planes == 2) /* pseudo planar */
-                       source->plane_addr[1] += xoff;
-               else /* planar */
-                       source->plane_addr[2] += xoff +
-                               (yoff * source->plane_pitch[2]);
-       }
-}
-
 int dpu_format_check_modified_format(
                const struct msm_kms *kms,
                const struct msm_format *msm_fmt,
-- 
Sean Paul, Software Engineer, Google / Chromium OS

_______________________________________________
Freedreno mailing list
Freedreno@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/freedreno

Reply via email to