panfrost: Remove line_stride
authorAlyssa Rosenzweig <alyssa@collabora.com>
Wed, 27 Apr 2022 16:12:05 +0000 (12:12 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 3 May 2022 14:20:15 +0000 (14:20 +0000)
There are no more users. This eliminates a class of issues.

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

src/panfrost/lib/pan_layout.c
src/panfrost/lib/pan_texture.h

index 3241740..c6642b1 100644 (file)
@@ -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);
index 83d057f..9c89923 100644 (file)
@@ -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;