Skip to content

Commit bd44de8

Browse files
authored
PR #217 from Arun-Prasad-V: Porting stride alignment patch from JP 5.0.2 to 5.1.2 & 6.0
2 parents ddcafa5 + bc82cc4 commit bd44de8

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

kernel/nvidia/5.1.2/0001-Porting-driver-patches-to-jetpack-5.1.2.patch

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,6 +1530,15 @@ diff --git a/include/media/tegra_camera_core.h b/include/media/tegra_camera_core
15301530
index 788cf77dc..421c22491 100644
15311531
--- a/include/media/tegra_camera_core.h
15321532
+++ b/include/media/tegra_camera_core.h
1533+
@@ -23,7 +23,7 @@
1534+
/* Width alignment */
1535+
#define TEGRA_WIDTH_ALIGNMENT 1
1536+
/* Stride alignment */
1537+
-#define TEGRA_STRIDE_ALIGNMENT 1
1538+
+#define TEGRA_STRIDE_ALIGNMENT 64
1539+
/* Height alignment */
1540+
#define TEGRA_HEIGHT_ALIGNMENT 1
1541+
/* Size alignment */
15331542
@@ -37,6 +37,8 @@
15341543
#define TEGRA_IMAGE_FORMAT_DEF 32
15351544

nvidia-oot/6.0/0001-Porting-nvidia-driver-patches-to-jetpack-6.0.patch

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,6 +1224,15 @@ diff --git a/include/media/tegra_camera_core.h b/include/media/tegra_camera_core
12241224
index e6d9a2b1..38634b77 100644
12251225
--- a/include/media/tegra_camera_core.h
12261226
+++ b/include/media/tegra_camera_core.h
1227+
@@ -18,7 +18,7 @@
1228+
/* Width alignment */
1229+
#define TEGRA_WIDTH_ALIGNMENT 1
1230+
/* Stride alignment */
1231+
-#define TEGRA_STRIDE_ALIGNMENT 1
1232+
+#define TEGRA_STRIDE_ALIGNMENT 64
1233+
/* Height alignment */
1234+
#define TEGRA_HEIGHT_ALIGNMENT 1
1235+
/* Size alignment */
12271236
@@ -32,6 +32,8 @@
12281237
#define TEGRA_IMAGE_FORMAT_DEF 32
12291238

0 commit comments

Comments
 (0)