Mesa (main): panfrost: Remove line_stride

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue May 3 14:38:09 UTC 2022


Module: Mesa
Branch: main
Commit: 1842e14a733b442fd6265d1efe7c0282879be048
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1842e14a733b442fd6265d1efe7c0282879be048

Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date:   Wed Apr 27 12:12:05 2022 -0400

panfrost: Remove line_stride

There are no more users. This eliminates a class of issues.

Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16201>

---

 src/panfrost/lib/pan_layout.c  | 1 -
 src/panfrost/lib/pan_texture.h | 1 -
 2 files changed, 2 deletions(-)

diff --git a/src/panfrost/lib/pan_layout.c b/src/panfrost/lib/pan_layout.c
index 32417404bfd..c6642b15669 100644
--- a/src/panfrost/lib/pan_layout.c
+++ b/src/panfrost/lib/pan_layout.c
@@ -258,7 +258,6 @@ pan_image_layout_init(struct pan_image_layout *layout,
                         row_stride = ALIGN_POT(row_stride, 64);
                 }
 
-                slice->line_stride = row_stride / block_size.height;
                 slice->row_stride = row_stride;
 
                 unsigned slice_one_size = row_stride * (effective_height / block_size.height);
diff --git a/src/panfrost/lib/pan_texture.h b/src/panfrost/lib/pan_texture.h
index 83d057f1bde..9c89923a689 100644
--- a/src/panfrost/lib/pan_texture.h
+++ b/src/panfrost/lib/pan_texture.h
@@ -49,7 +49,6 @@ extern uint64_t pan_best_modifiers[PAN_MODIFIER_COUNT];
 
 struct pan_image_slice_layout {
         unsigned offset;
-        unsigned line_stride;
         unsigned row_stride;
         unsigned surface_stride;
 



More information about the mesa-commit mailing list