Skip to content

Commit cc2f3f8

Browse files
committed
mesa-experimental: backport patch from the trunk
Backport the patch "freedreno/layout: Don't align explicit layouts to page size" in order to fix issues with imported multiplanar YUV buffers. Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent 6b4ea5d commit cc2f3f8

File tree

1 file changed

+70
-1
lines changed

1 file changed

+70
-1
lines changed

overlay-debs/mesa-experimental/mesa_25.2.0-1qcom1.debdiff

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
diff -Nru mesa-25.2.0/debian/changelog mesa-25.2.0/debian/changelog
22
--- mesa-25.2.0/debian/changelog 2025-08-07 14:08:04.000000000 +0300
33
+++ mesa-25.2.0/debian/changelog 2025-05-29 20:16:02.000000000 +0300
4-
@@ -1,3 +1,11 @@
4+
@@ -1,3 +1,13 @@
55
+mesa (25.2.0-1qcom1) trixie; urgency=medium
66
+
77
+ * Rebuild for trixie.
88
+ * Switch to LLVM 19 (LLVM 20 is not a part of trixie) and also lower libdrm
99
+ dependency to the version present in trixie.
10+
+ * Import patch from MR 36656 ("freedreno/layout: Don't align explicit
11+
+ layouts to page size")
1012
+
1113
+ -- Loïc Minier <[email protected]> Thu, 29 May 2025 17:16:02 +0000
1214
+
@@ -74,6 +76,73 @@ diff -Nru mesa-25.2.0/debian/control.in mesa-25.2.0/debian/control.in
7476
libx11-dev,
7577
libxxf86vm-dev,
7678
libexpat1-dev,
79+
diff -Nru mesa-25.2.0/debian/patches/36656.patch mesa-25.2.0/debian/patches/36656.patch
80+
--- mesa-25.2.0/debian/patches/36656.patch 1970-01-01 02:00:00.000000000 +0200
81+
+++ mesa-25.2.0/debian/patches/36656.patch 2025-05-29 20:16:02.000000000 +0300
82+
@@ -0,0 +1,55 @@
83+
+From 8c59aacc10c1bdcb0b4febfe2b8068309516194d Mon Sep 17 00:00:00 2001
84+
+From: Rob Clark <[email protected]>
85+
+Date: Thu, 7 Aug 2025 15:09:45 -0700
86+
+Subject: [PATCH] freedreno/layout: Don't align explicit layouts to page size
87+
+
88+
+This could cause importing buffers, in particular multiplanar YUV, since
89+
+when the offset of the plane is added, the aligned size could be beyond
90+
+the end of the buffer.
91+
+
92+
+Fixes: 27b0f64b3ed0 ("freedreno/a6xx: Use handle for explicit layout")
93+
+Signed-off-by: Rob Clark <[email protected]>
94+
+Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36656>
95+
+---
96+
+ src/freedreno/ci/freedreno-a618-fails.txt | 11 -----------
97+
+ src/freedreno/fdl/fd6_layout.c | 2 +-
98+
+ 2 files changed, 1 insertion(+), 12 deletions(-)
99+
+
100+
+diff --git a/src/freedreno/ci/freedreno-a618-fails.txt b/src/freedreno/ci/freedreno-a618-fails.txt
101+
+index c437bbfa9ba01..2f687d2aaf0a2 100644
102+
+--- a/src/freedreno/ci/freedreno-a618-fails.txt
103+
++++ b/src/freedreno/ci/freedreno-a618-fails.txt
104+
+@@ -226,17 +226,6 @@ spec@arb_base_instance@arb_base_instance-drawarrays,Fail
105+
+ spec@ext_base_instance@arb_base_instance-baseinstance-doesnt-affect-gl-instance-id_gles3,Fail
106+
+ spec@ext_base_instance@arb_base_instance-drawarrays_gles3,Fail
107+
+
108+
+-# Bad assumptions in piglit about layout of multiplanar formats,
109+
+-# it should use separate buffers per plane:
110+
+-spec@ext_image_dma_buf_import@ext_image_dma_buf_import-export,Fail
111+
+-spec@ext_image_dma_buf_import@ext_image_dma_buf_import-sample_nv12,Fail
112+
+-spec@ext_image_dma_buf_import@ext_image_dma_buf_import-sample_nv21,Fail
113+
+-spec@ext_image_dma_buf_import@ext_image_dma_buf_import-sample_p010,Fail
114+
+-spec@ext_image_dma_buf_import@ext_image_dma_buf_import-sample_p012,Fail
115+
+-spec@ext_image_dma_buf_import@ext_image_dma_buf_import-sample_p016,Fail
116+
+-spec@ext_image_dma_buf_import@ext_image_dma_buf_import-sample_yuv420,Fail
117+
+-spec@ext_image_dma_buf_import@ext_image_dma_buf_import-sample_yvu420,Fail
118+
+-
119+
+ # Regression from https://gitlab.freedesktop.org/mesa/mesa/-/compare/ace49d9e52a6156f114ee00eec759d734bd84fc0...88c79a13b9056099048080e7d41576e0cb69c347
120+
+ [email protected]@execution@variable-indexing@vs-output-array-vec2-index-wr-before-gs,Fail
121+
+ [email protected]@execution@variable-indexing@vs-output-array-vec3-index-wr-before-gs,Fail
122+
+diff --git a/src/freedreno/fdl/fd6_layout.c b/src/freedreno/fdl/fd6_layout.c
123+
+index d85f86b97cd61..dd32d470e4289 100644
124+
+--- a/src/freedreno/fdl/fd6_layout.c
125+
++++ b/src/freedreno/fdl/fd6_layout.c
126+
+@@ -317,7 +317,7 @@ fdl6_layout_image(struct fdl_layout *layout, const struct fd_dev_info *info,
127+
+ }
128+
+ }
129+
+
130+
+- if (layout->layer_first) {
131+
++ if (layout->layer_first && !explicit_layout) {
132+
+ layout->layer_size = align64(layout->size, 4096);
133+
+ layout->size = layout->layer_size * params->array_size;
134+
+ }
135+
+--
136+
+GitLab
137+
+
138+
diff -Nru mesa-25.2.0/debian/patches/series mesa-25.2.0/debian/patches/series
139+
--- mesa-25.2.0/debian/patches/series 2025-08-07 12:15:38.000000000 +0300
140+
+++ mesa-25.2.0/debian/patches/series 2025-05-29 20:16:02.000000000 +0300
141+
@@ -1,3 +1,4 @@
142+
path_max.diff
143+
src_glx_dri_common.h.diff
144+
disable_ppc64el_assembly.diff
145+
+36656.patch
77146
diff -Nru mesa-25.2.0/debian/rules mesa-25.2.0/debian/rules
78147
--- mesa-25.2.0/debian/rules 2025-08-07 14:06:33.000000000 +0300
79148
+++ mesa-25.2.0/debian/rules 2025-05-29 20:16:02.000000000 +0300

0 commit comments

Comments
 (0)