Commit f2670002 authored by Icecream95's avatar Icecream95 Committed by Marge Bot
Browse files

panfrost: Stop overallocating compressed textures

The line stride uses the number of bytes in the entire block, so both
the width and height need to be reduced for compressed textures so
that the surface stride is calculated correctly.

Fixes: 051d62cf ("panfrost: Add a pan_image_layout_init() helper")
Closes: #6286
Part-of: <!15989>
parent f68e5790
Pipeline #561363 waiting for manual action with stages
......@@ -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 */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment