pan/layout: Don't align WSI import offset

If the offset is considered valid by wsi_row_pitch_to_row_stride() we
should use it as-is, even if it's suboptimal.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Tested-by: Eric R. Smith <eric.smith@collabora.com>
Reviewed-by: Eric R. Smith <eric.smith@collabora.com>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35015>
This commit is contained in:
Boris Brezillon
2025-05-20 09:48:52 +02:00
committed by Marge Bot
parent f64a7c1506
commit 8e18402eb1
+2 -1
View File
@@ -351,7 +351,8 @@ pan_image_layout_init(unsigned arch, const struct pan_image_props *props,
/* Align levels to cache-line as a performance improvement for
* linear/tiled and as a requirement for AFBC */
offset_B = ALIGN_POT(offset_B, pan_image_slice_align(props->modifier));
if (!wsi_layout)
offset_B = ALIGN_POT(offset_B, pan_image_slice_align(props->modifier));
slice->offset_B = offset_B;