diff --git a/src/panfrost/lib/pan_texture.c b/src/panfrost/lib/pan_texture.c index 9a9b5a6d7d5cc4232b58704ab061ae969b32531d..c5a4e1cecbf2b1a321673071892d98c5c833a6e3 100644 --- a/src/panfrost/lib/pan_texture.c +++ b/src/panfrost/lib/pan_texture.c @@ -202,7 +202,7 @@ pan_image_layout_init(const struct panfrost_device *dev, if (should_align) { effective_width = ALIGN_POT(effective_width, tile_w) >> tile_shift; - effective_height = ALIGN_POT(effective_height, tile_h); + effective_height = ALIGN_POT(effective_height, tile_h) >> tile_shift; /* We don't need to align depth */ }