mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-23 17:47:28 +08:00

These patches were generated from: https://github.com/raspberrypi/linux/commits/rpi-6.12.y With the following command: git format-patch -N v6.12.27..HEAD (HEAD -> 8d3206ee456a5ecdf9ddbfd8e5e231e4f0cd716e) Exceptions: - (def)configs patches - github workflows patches - applied & reverted patches - readme patches - wireless patches Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
38 lines
1.2 KiB
Diff
38 lines
1.2 KiB
Diff
From 350070e73c4db512248653736f9cf20eea68a2f5 Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
Date: Wed, 19 Mar 2025 15:34:04 +0000
|
|
Subject: [PATCH] drm/vc4: Correct arithmetic for shifting between columns of
|
|
SAND images
|
|
|
|
Commit 69dbba71ac11 ("drm/vc4: Add algorithmic handling for SAND")
|
|
lost a multiplication by the tile width when doing the pointer arithmetic
|
|
for cropping off columns for vc6.
|
|
|
|
Correct that computation.
|
|
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
---
|
|
drivers/gpu/drm/vc4/vc4_plane.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
--- a/drivers/gpu/drm/vc4/vc4_plane.c
|
|
+++ b/drivers/gpu/drm/vc4/vc4_plane.c
|
|
@@ -1516,7 +1516,7 @@ static int vc4_plane_mode_set(struct drm
|
|
|
|
tile = src_x / pix_per_tile;
|
|
|
|
- offsets[i] += pitch[i] * tile;
|
|
+ offsets[i] += pitch[i] * tile * tile_width;
|
|
offsets[i] += src_y / (i ? v_subsample : 1) * tile_width;
|
|
offsets[i] += x_off & ~(i ? 1 : 0);
|
|
}
|
|
@@ -1992,7 +1992,7 @@ static int vc6_plane_mode_set(struct drm
|
|
|
|
tile = src_x / pix_per_tile;
|
|
|
|
- offsets[i] += pitch[i] * tile;
|
|
+ offsets[i] += pitch[i] * tile * tile_width;
|
|
offsets[i] += src_y / (i ? v_subsample : 1) * tile_width;
|
|
offsets[i] += x_off & ~(i ? 1 : 0);
|
|
|